Skip to content

GameObject

A handle to a native GameObject.

Kolpa.Engine.GameObject

public struct GameObject : IEquatable<GameObject>
{
public GameObject(string name);
public static int Count { get; }
public GameObject gameObject { get; }
public ulong Id { get; }
public bool IsValid { get; }
public string name { get; }
public static GameObject None { get; }
public string tag { get; set; }
public Transform transform { get; }
public T AddComponent<T>(T component);
public Script AddComponent(Script script);
public static GameObject At(int index);
public static GameObject Create(string name);
public void Destroy();
public bool Equals(GameObject other);
public bool Equals(object obj);
public static GameObject Find(string name);
public static GameObject[] FindGameObjectsWithTag(string tag);
public static GameObject FindWithTag(string tag);
public T GetComponent<T>();
public int GetHashCode();
public bool HasComponent(ComponentType type);
public GameObject Instantiate(string name, float x, float y, float z);
public bool RemoveComponent(ComponentType type);
}