跳到主要内容

Class GameObjectExtension

Provides extension suport for GameObject.

Methods

TryAddComponent<T>(GameObject self)

public static T TryAddComponent<T>(GameObject self)

TryAddComponent<T>(GameObject self, string path)

public static T TryAddComponent<T>(GameObject self, string path)

AddComponent<T>(GameObject self, string path)

public static T AddComponent<T>(GameObject self, string path)

GetComponent<T>(GameObject self, string path)

public static T GetComponent<T>(GameObject self, string path)

GetComponent<T>(Transform self, string path)

public static T GetComponent<T>(Transform self, string path)