Esempio n. 1
0
 /// <summary>
 ///     Add a Component (e.g. MonoBehaviour) into Unity scene.
 ///     Automatically registers the type with Il2Cpp Type system if it isn't already.
 /// </summary>
 /// <typeparam name="T">Type of the component to add.</typeparam>
 public T AddComponent <T>() where T : Il2CppObjectBase => IL2CPPChainloader.AddUnityComponent <T>();