Forum rules - please read before posting.

Scaling character on scene start

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

  • 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);
  • edited December 2014
    thank you.
  • 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)
  • 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!

Welcome to the official forum for Adventure Creator.