Unravel Engine C# Reference
|
Represents a base class for all components in the entity-component system. More...
Public Member Functions | |
override bool | IsValid () |
Determines whether this component is valid. | |
![]() | |
bool | IsValid () |
bool | Equals (NativeObject other) |
override bool | Equals (object obj) |
override int | GetHashCode () |
Properties | |
Entity | owner [get, set] |
Gets the entity that owns this component. | |
TransformComponent | transform [get] |
Gets the TransformComponent associated with this component's owner. | |
Additional Inherited Members | |
![]() | |
static bool | operator== (NativeObject left, NativeObject right) |
static bool | operator!= (NativeObject left, NativeObject right) |
Represents a base class for all components in the entity-component system.
Definition at line 9 of file Components.cs.
override bool Unravel.Core.Component.IsValid | ( | ) |
Determines whether this component is valid.
true
if the owner entity is valid and this component exists on the owner; otherwise, false
. Definition at line 46 of file Components.cs.
|
getset |
Gets the entity that owns this component.
Definition at line 14 of file Components.cs.
|
get |
Gets the TransformComponent associated with this component's owner.
The transform is lazily loaded and cached for performance. The cache is updated if the owner entity is reassigned.
Definition at line 26 of file Components.cs.