How to get new methods to show up in right-click menu? -
12-04-2005, 03:38 PM
I created a version of the axes class with a new method. The method is called "lock to" and it takes one parameter, an object. The method positions and orients the axes to that object, and then sets the object to be the vehicle for the axes.
The whole point of this, of course, is to make it so that I can attach axes to objects while setting up a scene to make the scene set up go more quickly.
But there's a little catch... While setting up the scene, I load in my new axes, hoping to use the new "lock to" method, by right-clicking on the axes tile in the hierarchy. But unfortunately, my custom method does not show up in the right-click menu. So I have no way to use this new method.
Well, sure, I could use the new method in an actual script, by dragging the corresponding tile over. But I can't use it as part of scene setup, which is what I really want to do.
So, is there any way to add my custom method to the right-click menu?
Is there any way, other than right-clicking on an object, to access a method in "realtime".
|