API reference

Color4Attribute Class

Modifiers: final
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>

Signature

class Color4Attribute(key: Int, component: ComponentBase, attributeIndex: Int, initialValue: Color4) : TypedAbstractAttribute<Color4> 

Constructors

Color4Attribute ( key , component , attributeIndex , initialValue )
Signature
constructor(key: Int, component: ComponentBase, attributeIndex: Int, initialValue: Color4)
Parameters
key: Int  The integer key for this attribute
component: ComponentBase  The component this attribute belongs to
attributeIndex: Int
initialValue: Color4  The initial value for this attribute
Returns
Color4Attribute

Properties

value : WatchedColor4
[Get][Set]
Signature
var value: WatchedColor4
version : ULong
[Get][Set]
Signature
open override var version: ULong

Methods

checkIfComponentIsOld ()
Signature
fun checkIfComponentIsOld()
checkIfComponentIsRecycled ()
Signature
fun checkIfComponentIsRecycled()
get ()
Signature
open override fun get(): Any
Returns
Any
getValue ( thisRef , property )
Signature
operator fun getValue(thisRef: Any?, property: KProperty<*>): Color4
Parameters
thisRef: Any?
property: KProperty
Returns
Color4
markDirty ( potentialValue )
Signature
fun markDirty(potentialValue: WatchedColor4)
Parameters
potentialValue: WatchedColor4
set ( value )
Signature
open override fun set(value: Any)
Parameters
value: Any
setValue ( thisRef , property , value )
Signature
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Color4)
Parameters
thisRef: Any?
property: KProperty
value: Color4