/// <summary> /// Initialize single prefab prototype for preparing runtime data and buffers for instanced rendering /// </summary> /// <param name="prefabManager">The GPUI Prefab Manager that the prefab prototype is defined on</param> /// <param name="prefabPrototype">GPUI Prefab Prototype</param> /// <returns></returns> public static GPUInstancerRuntimeData InitializeGPUInstancer(GPUInstancerPrefabManager prefabManager, GPUInstancerPrefabPrototype prototype) { // initialize PrefabManager if it is not already initialized prefabManager.InitializeRuntimeDataAndBuffers(false); // generate and return prototype runtime data return(prefabManager.InitializeRuntimeDataForPrefabPrototype(prototype)); }