Discussions
Sign In
Forum rules
- please read before posting.
Scaling character on scene start
noobay
December 2014
edited December 2014
in
Technical Q&A
How do I scale a 3D Player character when the scene starts?
I want to scale my character down but can't find how,
maybe add an interaction to scale the character down?
any help is appreciated.
Comments
ChrisIceBox
December 2014
You'd need a custom Action for this. A tutorial can be found
here
. It's quite simple, this is all you'd need in your Run function (change 0.5 to your desired scale).
float
newScale = 0.5f;
AC.KickStarter.player.transform.localScale = new Vector3 (newScale, newScale, newScale);
noobay
December 2014
edited December 2014
thank you.
SoundGuy
December 2014
in 1.41 - since a player in the scene overrides the prefab - does the player uses it's scale at the scene (instead of the prefab as before)
ChrisIceBox
December 2014
Yes - the original prefab will be discarded (and brought back once the scene ends)
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12.1K
All Categories
64
Official news
1.5K
Engine development
10.1K
Technical Q&A
321
Games showcase
149
Extending the editor
222
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
float newScale = 0.5f;
AC.KickStarter.player.transform.localScale = new Vector3 (newScale, newScale, newScale);