Hey guys, I am making some editor tools. An object has a monobehaviour that takes in an array of gameobjects and draws lines from one to the other. I have an editor tool to add/delete these gameobjects ‘automatically’ (so the user doesnt need to manually populate the list themselves). these objects are instantiated, and childed the the main object. I want to prevent the user from moving them around the hierarchy, but I do not want to stop them from moving these child objects around in the scene. HideFlags.HideInHierarchy sounds like what I want, but it hides everything.
So what else can I do to prevent the user from altering a hierarchy of objects? This is just a simple example, but I can easy imagine a real world situation where the monobehaviour relies on the ordering of its children (or something like that), and dragging the objects around the hierarchy could cause problems