Click or drag to resize

Component Methods

The Component type exposes the following members.

Methods
  NameDescription
Public methodAddComponentT
Adds a component of the specified type T to the entity.
Public methodAddComponentT(Object)
Adds a component of the specified type T to the entity with the specified constructor args.
Public methodDestroy
Destroys this component.
Public methodDestroyComponentsT
Destroys the components of the specified type T attached to the entity.
Public methodDestroyEntity
Destroys the entity.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetComponentT
Gets a component of the specified type T attached to the entity.
Public methodGetComponentInChildrenT
Gets a component of the specified type T attached to a child entity of the entity using a depth first search.
Public methodGetComponentInParentT
Gets a component of the specified type T attached to a parent entity of the entity.
Public methodGetComponentsT
Gets all components of the specified type T attached to the entity.
Public methodGetComponentsInChildrenT
Gets all components of the specified type T attached to a child entity of the entity.
Public methodGetComponentsInParentT
Gets all components of the specified type T attached to a parent entity of the entity.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDestroyComponent
This method is invoked before this component is destroyed and removed from its entity.
Protected methodOnInitializeComponent
This method is invoked after this component has been attached the an entity.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also