Class ChildrenTargetSelector
Selects all direct children of the context UnityEngine.GameObject. Useful for applying effects to all immediate child objects.
[Serializable]
public class ChildrenTargetSelector : TargetSelector
- Inheritance
-
ChildrenTargetSelector
- Inherited Members
Methods
SelectTargets(EventData)
Returns all direct children of the context UnityEngine.GameObject.
public override IEnumerable<GameObject> SelectTargets(EventData eventData)
Parameters
eventDataEventDataThe event driving the selection; its context object is the parent.
Returns
- IEnumerable<GameObject>
An enumerable of all direct child UnityEngine.GameObjects, or empty if there is no context.