Пример #1
0
 /// <summary>
 ///     <para>Starts listening the specified process and runs the given callback function when it finishes.</para>
 ///     <para>GPU Instancer does not lock Unity updates when initializing instances and instead, does this in a background process.
 ///     Each prototype will show on the terrain upon its own initialization. Use this method to get notified when all prototypes are initialized.</para>
 ///     <para>The most common usage for this is to show a loading bar. For an example, see: <seealso cref="DetailDemoSceneController"/></para>
 /// </summary>
 /// <param name="eventType">The event type that will be listened for callback</param>
 /// <param name="callback">The callback function to run upon initialization completion. Can be any function that doesn't take any parameters.</param>
 public static void StartListeningGPUIEvent(GPUInstancerEventType eventType, UnityAction callback)
 {
     GPUInstancerUtility.StartListening(eventType, callback);
 }