Hide
GetInSiblings

Automatically assign a sibling target.

  • (Optional) EXP config: config. See Saints XPath-like Syntax section for more information.

  • bool includeInactive = true

    Should inactive GameObject be included? true to include inactive GameObject.

  • Type compType = null

    The component type to assign. If null, it'll use the field type.

  • Allow Multiple: Yes

using SaintsField; [GetInSiblings] public SpriteRenderer sr; [GetInSiblings] public SpriteRenderer[] srArray;