GameObjectExtensions.IsChildOf
Declaration#
public static bool IsChildOf(GameObject gameObject, GameObject parent)Parameters#
| Name | Description |
|---|---|
| gameObject | GameObject to check |
| parent | Parent object to check |
Description#
Check if a GameObject is a child of another GameObject
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class ExampleObject : MonoBehaviour{
public bool ExampleMethod(GameObject other) { return gameObject.IsChildOf(other); }
}