New concept

Hi great series thank you!
Forgive me if i’ve misunderstood something, (or missed something while i was getting one of my many hot coffee drinks) but I thought it might be worth spending a bit of time explaining what I saw as a new concept this lesson.

In our code we have:

[SerializeField] List<Transform> Waypoints;

But in unity’s user interface - specifically the inspector window - we are dragging GameObjects into that serialised field.

So it shouldn’t accept game objects as an input - but given that i suspect transforms might only exist when applied to a game object I guess unity is implicitly accepting them?

I’m happy to go look it up and research etc but I thought perhaps It might be worth elaborating on the next time the video gets updated.

Thankyou

Privacy & Terms