Click or drag to resize
Ab4d.SharpEngine logo

OptimizedGroupNodeBeginInitialize(Scene, ActionOptimizedGroupNode, Exception, CancellationToken) Method

BeginInitialize method can be called 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.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
public void BeginInitialize(
	Scene scene,
	Action<OptimizedGroupNode, Exception?>? initializeCompletedAction,
	CancellationToken cancellationToken = default
)

Parameters

scene  Scene
Scene that is used to initialize the child nodes.
initializeCompletedAction  ActionOptimizedGroupNode, Exception
callback Action with OptimizedGroupNode and optional Exception as parameters that is called when all the data and GpuBuffers are created
cancellationToken  CancellationToken  (Optional)
optional CancellationToken
See Also