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

FloatAttribute

FloatAttribute

class FloatAttribute(keyString: String, key: Int, component: ComponentBase, initialValue: Float) : TypedAbstractAttribute<Float>
An attribute that stores a Float value.
XML Usage Example:
<component name="Player">
  <FloatAttribute name="maxHealth" defaultValue="100.0" />
</component>

Constructors

NameSummary
FloatAttribute
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Float)

Properties

NameSummary
value
var value: Float

Functions

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