Пример #1
0
 /// <summary>
 /// Use this method to define Prefab Prototypes at runtime for procedurally generated GameObjects
 /// </summary>
 /// <param name="prefabManager">The GPUI Prefab Manager that the prefab prototype will be defined on</param>
 /// <param name="prototypeGameObject">GameObject to use as reference for the prototype</param>
 /// <returns></returns>
 public static GPUInstancerPrefabPrototype DefineGameObjectAsPrefabPrototypeAtRuntime(GPUInstancerPrefabManager prefabManager, GameObject prototypeGameObject)
 {
     return(prefabManager.DefineGameObjectAsPrefabPrototypeAtRuntime(prototypeGameObject));
 }
Пример #2
0
 /// <summary>
 /// Use this method to define Prefab Prototypes at runtime for procedurally generated GameObjects
 /// </summary>
 /// <param name="prefabManager">The GPUI Prefab Manager that the prefab prototype will be defined on</param>
 /// <param name="prototypeGameObject">GameObject to use as reference for the prototype</param>
 /// <param name="attachScript">(Optional) If false, GPUI will not add the GPUInstancerPrefab component on the prototypeGameObject</param>
 /// <returns></returns>
 public static GPUInstancerPrefabPrototype DefineGameObjectAsPrefabPrototypeAtRuntime(GPUInstancerPrefabManager prefabManager, GameObject prototypeGameObject, bool attachScript = true)
 {
     return(prefabManager.DefineGameObjectAsPrefabPrototypeAtRuntime(prototypeGameObject, attachScript));
 }