Detach on Event LPK_DetachOnEvent.cs

Detach an object from all objects it is a child to.

Suggested use:

Use with Attach on Event to alter the hierarchy.

Caveats:

Examples found in: Project 4

Components
Property Type Description Default Value
Component Properties
Detach Game Object Game Object Game object to detach from parent. If this and tag are empty, the owner will be detached from it's parent. None
Detach Tag Tag Tag of the object to detach from parent. If this and game object are empty, the owner will be detached from it's parent. Untagged
Event Receiving Info
Event Trigger LPK Event Object Which event will trigger this component's action. None
Detach Event Sending Info
Event LPK Event Object Event to dispatch when conditions are met:
  • When the Child object is detached from the Parent object.
None
Event Sending Mode LPK Event Sending Mode Who receives the event sent info when input is given from the input device. OWNER = only send to components on the same game object. ALL = send to all game objects. TAGS = send to specified tags. TAGS
Event Sending Mode - TAGS
Tags Array of Tags Which tags will receive this event. 0
Debug Properties
Print Debug Info Boolean Toggle console debug messages. False
Label String Notes for the user about this component. This does nothing to the game or build. None