List Class Variable?

@S4V3D8YGR4C3 See this post on formatting code in the forum

Using blank scripts is usually a way to restrict the objects that can be added to that list. If we didn’t create the script, we’d have to make the list of type GameObject or Transform which would allow us to add any object to the list. By making a Waypoint script and attaching it game objects, we are restricting which GameObjects can be added to this list because only those with the script will now be allowed to be dropped in the inspector.

1 Like