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

Color4Attribute

Color4Attribute

class Color4Attribute(keyString: String, key: Int, component: ComponentBase, initialValue: Color4) : TypedAbstractAttribute<Color4>
An attribute that stores a Color4 value.
XML Usage Example:
<component name="Material">
  <Color4Attribute name="color" defaultValue="1.0 1.0 1.0 1.0" />
</component>

Constructors

NameSummary
Color4Attribute
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Color4)

Properties

NameSummary
value
var value: WatchedColor4

Functions

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