- Home /
Create "WayPoint" object in editor
Right now I use empty objects as waypoints. But I need a bit more of control - for example, determine if NPC will walk, jump or run to waypoint, how fast e.t.c (just with int and string params). How can I create it to have possibility to add my custom waypoints like usual gameobject "Cube".
Answer by kevork · Oct 14, 2011 at 04:22 PM
Create the Waypoint script component that has the data that you want, and add that component to an empty game object.
You can make a menu item to create an empty game object, name it a Waypoint, and add the Waypoint script component using MenuItem.
Your answer
![](https://koobas.hobune.stream/wayback/20220613010608im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Editor Window with settings and Asset Creation 1 Answer
Gibt es eine Lösung/Einstellung für: Hierarchy Custom / My Sort? 1 Answer
Custom Editor: show asset folders in ObjectField 2 Answers
Custom inheritance classes and custom inspectors 2 Answers
is there a way to open 2 EditorWindows and send information 0 Answers