Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j-bbr/Canvas-Element-3D
Scales meshes to fit in a UI Rect
https://github.com/j-bbr/Canvas-Element-3D
Last synced: 3 months ago
JSON representation
Scales meshes to fit in a UI Rect
- Host: GitHub
- URL: https://github.com/j-bbr/Canvas-Element-3D
- Owner: j-bbr
- License: mit
- Created: 2017-04-21T10:58:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T11:16:56.000Z (over 7 years ago)
- Last Synced: 2024-07-14T04:34:28.565Z (4 months ago)
- Language: C#
- Size: 28.3 KB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Canvas-Element-3D - Scales meshes to fit in a UI Rect (UI Utility)
README
# Use meshes in Unity UI
This component scales meshes so that they fit into a UI Rect. Canvas render mode can't be ScreenSpaceOverlay and the set-up should be like this:
* GameObject (has the CanvasElement3D component, the UI Rect defines the scale)
* Scaler (empty GameObject (this is so that the 3D Element can be made up of multiple meshes))
* Actual Meshes (the Meshes that should be scaled, drag all the meshes that should be considered into the rendersToScale property on the CanvasElement3D)## License
Licensed under a MIT-License.