- Home /
Resize a 3D prefab without affecting scale
I am making a farming game and I have downloaded some 3D crops off of the assets store. The assets were much too large for my game so I resized them by using scale. Is there a way to resize a prefab without changing the scale so it is a smaller prefab but its scale is still 1.
I have a script that does growth and it does this by changing the scale, it is a lot easier to work with whole numbers when doing calculations and I would like all crops to have the same scale when growing.
Is this possible without remodeling a new prefab as it is from the asset store and not made by me?
Try this:
1. Select your sprite from Assets folder.
2. In Inspector Window, Change it's Texture Type to "Sprite (2D and UI).
3. Adjust Pixels Per Unit Size. (Smaller for Large Image, Greater for Smaller Image).
Hope this helps.
@TechTayyab sorry I should have been clearer, this a 3D asset, will this still work?
Answer by darksider2000 · May 07, 2020 at 09:47 PM
There should be an option to scale your imported model. Try looking for it in the editor. If you can't find it, it would help to know what extension the asset file is.
But generally speaking, even without scaling imported models in the import settings, you could in your situation place the art asset as a child under an empty game object that handles all the coding. That way the 3D model keeps whatever scale you want it to have, and can still be scaled using the parent's transform.
I think it's a good habit to have, separating art assets from code. Gives you a lot of flexibility.
Hope this helps ya