What do people like to use for VISUALLY setting multiple destination “targets” that a sprite can move to? Here’s what I mean:
Let’s say you have a sprite and you’d like to have 5 positions on the screen that the sprite could move to. Instead of keeping an array of coordinates, I’d like to use objects that I can see in the editor but not see in the game. The reason for this is it makes it easy for a designer to just move the objects and that changes where the sprite can move to. No recording/entering in of coordinate values is necessary this way.
I was thinking of using empty GameObjects but they are invisible if they are not selected. I was wondering what experienced people tend to use. A box? Or perhaps there is “helper” class of objects in Unity that I am overlooking?
I’ve looked into the Navigation options but they seem specific for 3D characters and way point systems.
I would suggest using a GameObject with a gizmo on it instead of a Sprite. Gizmos will acrobatically be pulled out of your build. Sprites will not, and may cause issues down the line.
Just read my post again and realized the wording was awful. Gizmos are only visible from within the editor but the object the script is attached to will remain in the scene. I’ll update my post to clarify that.
i usually use empty gameobject with icon assigned (from that inspector dropdown),
and combine with editor script to draw gizmo lines between children of “TargetsFolder”
(so can see line going from target 1-2-3-4…)