the instance of EntityRepository
the entity unique Id which this component belongs to
the instance of MemoryManager
Get the Scoped ID of the Component
Get the current process stage of the component.
get the entity which has this component.
the entity which has this component
Get the unique ID of the entity corresponding to the component.
Get the max number of components
Gets the objectUID of the object.
Get the unique name of the entity.
add a SceneGraph component as a child of this (But Gizmo only)
a SceneGraph component of Gizmo
add a SceneGraph component as a child of this
a SceneGraph component
the target entity
the component class to add
castRay Methods
a source position in world space
a direction vector in world space
threshold of the intersected triangle and the ray
mesh components to ignore
information of intersection in world space
castRayFromScreen Methods
x position of screen
y position of screen
a camera component
a viewport vector4
threshold of the intersected triangle and the ray
mesh components to ignore
information of intersection in world space
get the bytes Information of the member
the member of component in string
bytes information
Gets the tag object.
The tag name.
Gets the value of the tag.
The tag name.
Gets the boolean value whether this object has the tag or not.
The tag name.
Get true or false whether the specified ProcessStage exists in Component.
Confirms the matching of the tag name and tag value.
The tag name.
The tag value.
Confirm that this object's tags includes given set of tags.
The set of tags.
Confirm that this object's tags includes given an array of string.
an array of string.
Move to the other stages of process
stage of component's process
register a dependency for the other components. Note: This method is not used yet
Register a member field of component class for memory allocation.
purpose type of buffer use
the name of member field
a class of data
a type of number
a initial value
remove the child SceneGraph component from this
a SceneGraph component
Remove the tag.
The tag name.
Allocate memory of self member fields
a number of entities to need allocate
take one memory area for the specified member for all same type of the component instances.
Tries to set tag (name and value).
Try to set a unique name of the entity.
If true, force to add name string to the current unique name string. If false, give up to change name.
Validate the string of tags.
The string to be validated
Get true or false whether the specified ProcessStage exists in Component.
true or false
Collects children and itself from specified sceneGraphComponent.
collects children and itself from the sceneGraphComponent
collects joints only
get the taken accessor for the member field.
get byte length of sum of member fields in the component class
Get the ComponentType of the member
the member name
the component class
ComponentType or undefined
Get the CompositionType of the member
the member name
the component class
CompositionType or undefined
get the bytes Information of the member (static version) by ComponentSID
the Component type
the ComponentSID of the component
the member of component in string
bytes information
get the bytes Information of the member (static version) by EntityUID
the component type
the EntityUID
the member of component in string
bytes information
get the bytes Information of the member
a instance of the component
the member of component in string
bytes information
get the Pixel Location Offset in the Buffer of the Member
the component type (e.g. TransformComponent )
the member name in string
the pixel offsets
Gets the object by corresponding to the objectUID.
The objectUID of the object.
Gets the object by the unique name.
The unique name of the object.
Process the components
params
take one accessor for the member field.
Update all components at each process stage.
Generated using TypeDoc
The constructor of the Component class. When creating an Component, use the createComponent method of the ComponentRepository class instead of directly calling this constructor.