- Home /
Question by
Fierce Waffle · Jan 01, 2011 at 10:30 AM ·
transformiphoneamount
Find how many Elements in Transform[]
In my script I am to figure out how what the size of a Transform[] is.
Here is my code
if(moveDirection.magnitude < 1)
{
if(behaviorType == behavior.Loop)
{
currentWaypoint++;
}
else if(behaviorType == behavior.Random)
{
currentWaypoint = Random.Range(1, I WANT THE TRANSFORM SIZE HERE);
}
}
Thank you in advance :)
Comment
Your answer
Follow this Question
Related Questions
Using gyroscope to get forward backward acceleration 1 Answer
How can I set the static checkbox of a GameObject in an editor script? 1 Answer
How many lights could affect at an object at the same time 1 Answer
Strange transform hierarchy problem when adding a rigidbody into the hierarchy 2 Answers
Simplest movement to point possible 2 Answers