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

StringAttribute

StringAttribute

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

Constructors

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

Properties

NameSummary
value
var value: String

Functions

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