 |
OptimizedGroupNodeBeginInitialize(Action, CancellationToken) Method |
BeginInitialize method (without Scene as a parameter) can be called after the OptimizedGroupNode was added to the Scene's RootNode and after
child SceneNodes have been added to this OptimizedGroupNode.
It initializes all the data and GpuBuffers in the background thread. When this is done, the specified initializeCompletedAction is called.
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 void BeginInitialize(
Action? initializeCompletedAction,
CancellationToken cancellationToken = default
)
Parameters
- initializeCompletedAction Action
- callback Action that is called when all the data and GpuBuffers are created
- cancellationToken CancellationToken (Optional)
- optional CancellationToken
See Also