transform ? GetComponent (Transform) ?

Greetings,

Both access the Transform component, but are they equal in speed ?

1 Like

Both have or at least had the same performance, which means internally there is a hash table call. If you want the best possible performance, store the transform in your own variable on start.

1 Like