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

Vector2Attribute Class

Modifiers: final
An attribute that stores a Vector2 value.
XML Usage Example:
<component name="2DCoordinates">
<Vector2Attribute name="coords" defaultValue="0.0 0.0" />
</component>

Signature

class Vector2Attribute(keyString: String, key: Int, component: ComponentBase, initialValue: Vector2) : TypedAbstractAttribute<Vector2> 

Constructors

Vector2Attribute ( keyString , key , component , initialValue )
Signature
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Vector2)
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: Vector2
  The initial value for this attribute

Properties

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

Functions

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<*>): Vector2
Parameters
thisRef: Any?
property: KProperty
Returns
keyName ()
Signature
fun keyName(): String
Returns
String
markDirty ( potentialValue )
Signature
fun markDirty(potentialValue: WatchedVector2)
Parameters
potentialValue: WatchedVector2
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: Vector2)
Parameters
thisRef: Any?
property: KProperty
value: Vector2
Did you find this page helpful?