API reference
API reference
Select your platform
No SDKs available
No versions available

EntityAttribute

EntityAttribute

class EntityAttribute(keyString: String, key: Int, component: ComponentBase, initialValue: Entity) : TypedAbstractAttribute<Entity>
An attribute that stores an Entity reference.
XML Usage Example (Entity references are typically set programmatically rather than through XML default values):
<component name="Relationship">
  <EntityAttribute name="target" />
</component>

Constructors

NameSummary
EntityAttribute
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Entity)

Properties

NameSummary
value
var value: Entity

Functions

NameSummary
checkIfComponentIsOld
fun checkIfComponentIsOld()
checkIfComponentIsRecycled
fun checkIfComponentIsRecycled()
get
open override fun get(): Any
getValue
operator fun getValue(thisRef: Any?, property: KProperty<*>): Entity
keyName
fun keyName(): String
set
open override fun set(value: Any)
setValue
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Entity)
Did you find this page helpful?
Thumbs up icon
Thumbs down icon