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

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(keyString: String, key: Int, component: ComponentBase, initialValue: Color4) : TypedAbstractAttribute<Color4> 

Constructors

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

Properties

value : WatchedColor4
[Get][Set]
Signature
var value: WatchedColor4

Functions

checkIfComponentIsOld ()
Signature
fun checkIfComponentIsOld()
checkIfComponentIsRecycled ()
Signature
fun checkIfComponentIsRecycled()
get () : Any
Signature
open override fun get(): Any
Returns
Any
getValue ( thisRef , property ) : Color4
Signature
operator fun getValue(thisRef: Any?, property: KProperty<*>): Color4
Parameters
thisRef: Any?
property: KProperty
Returns
keyName () : String
Signature
fun keyName(): String
Returns
String
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
Did you find this page helpful?
Thumbs up icon
Thumbs down icon