Playmaker Forum

PlayMaker News => General Discussion => Topic started by: Tholde on April 24, 2024, 12:49:46 AM

Title: How do you get an action to appear in the drop down menu when dragging a compone
Post by: Tholde on April 24, 2024, 12:49:46 AM
When you drag a game object into your playmaker state and mouse over the GameObject component, the Activate GameObject action appears at the top of the context menu.

I have a custom action for moving the player camera to certain locations, and when I drag in an object with this CameraLocation component attached, I want my change view action to appear in the context menu just as ActivateGameObject does when you drag in a GameObject component. Problem is, I can't see anywhere in the ActivateGameObject action code how that action does it, so I don't know how to replicate it.