 |
OptimizedGroupNodeInitializeAsync(Scene, CancellationToken) Method |
InitializeAsync method can be called after the child SceneNodes have been added to this OptimizedGroupNode.
It initializes all the data and GpuBuffers in the background thread.
While background initialization is not finished (
IsInitializingInBackground is true), it is not allowed to change the child nodes.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic Task InitializeAsync(
Scene scene,
CancellationToken cancellationToken = default
)
Parameters
- scene Scene
- Scene that is used to initialize the child nodes.
- cancellationToken CancellationToken (Optional)
- optional CancellationToken
Return Value
Task
See Also