Click or drag to resize
Ab4d.SharpEngine logo

InitializedSceneComponent Class

InitializedSceneComponent class is a base abstract class for all components that are created without a Scene object. The Scene object is provided later when the InitializeSceneResources(Scene) method is called and the the Scene property is set.
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.Core
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public abstract class InitializedSceneComponent : ComponentBase, 
	IInitializedSceneComponent

The InitializedSceneComponent type exposes the following members.

Constructors
 NameDescription
Protected methodInitializedSceneComponent Initializes a new instance of the InitializedSceneComponent class.
Top
Properties
 NameDescription
Public propertyIsInitialized Gets a Boolean that specifies if this component has already been initialized.
Public propertyScene Gets the parent Scene (can be null).
Top
Methods
 NameDescription
Protected methodCheckIfInitialized 
Protected methodCreateClone
(Overrides ComponentBaseCreateClone)
Public methodInitializeSceneResources Initializes this component. The specified scene must be initialized (has the GpuDevice property set). This method calls a virtual OnInitializeSceneResources(Scene, VulkanDevice) that can be used by a derived class to create the resources.
Protected methodOnInitializeSceneResources Initializes resources with the specified Scene and GpuDevice. This method can be override and is called from InitializeSceneResources(Scene) method.
Protected methodOnResourcesInitialized OnResourcesInitialized
Top
Events
 NameDescription
Public eventSceneResourcesInitialized ResourcesInitialized event is triggered after the resources were initialized by calling the InitializeSceneResources(Scene) method.
Top
See Also