TypeScript Function API • Docs
TypeScript Function API / asset_builder / ValueFromBuilder
Class: ValueFromBuilder
Gets a value from a socket or prop
Example
ts
const value = new ValueFromBuilder()
.setKind("prop")
.setPropPath(["root", "si", "name"])
.build()
Implements
Constructors
new ValueFromBuilder()
new ValueFromBuilder():
ValueFromBuilder
Returns
Defined in
Properties
valueFrom
valueFrom:
ValueFrom
Defined in
Methods
setKind()
setKind(
kind
):this
The type of the builder
Parameters
• kind: ValueFromKind
{string} [inputSocket | outputSocket | prop]
Returns
this
this
Example
ts
.setKind("prop")
Implementation of
Defined in
setSocketName()
setSocketName(
name
):this
Specify the socket name if using an inputSocket or outputSocket
Parameters
• name: string
Returns
this
this
Example
ts
.setSocketName("Region")
Implementation of
IValueFromBuilder
.setSocketName
Defined in
setPropPath()
setPropPath(
path
):this
Specify the prop path if using a prop
Parameters
• path: string
[]
a list of strings that represent the path to the prop
Returns
this
this
Example
ts
.setPropPath(["root", "si", "name"])
Implementation of
Defined in
build()
build():
ValueFrom
Build the object
Returns
Example
ts
.build()