Answers for "instantiate scale object"

C#
0

instantiate scale object

GameObject newObject = Instantiate(objectPrefab, location, Quaternion.identity) as GameObject;  // instatiate the object
newObject.transform.localscale = new Vector3(whatever.x, whatever.y, whatever.z); // change its local scale in x y z format
Posted by: Guest on February-23-2021

C# Answers by Framework

Browse Popular Code Answers by Language