API ReferenceSandbox
PrefabVariableclass
A prefab variable definition
object→PrefabVariable
Obsolete
This API type is obsolete.
Constructors1
Showing 1 constructors
public PrefabVariable()
No results match this filter.
Methods1
Showing 1 methods
public void AddTarget(System.Guid id, string propertyName)
Add a target property
| Parameter | Type | Description |
|---|---|---|
| id | Guid | — |
| propertyName | string | — |
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public string Sandbox.PrefabVariable.Description { get; set; }
A user friendly description for this variable
Returns:
string—public string Sandbox.PrefabVariable.Group { get; set; }
An optional group for this variable to belong to
Returns:
string—public string Sandbox.PrefabVariable.Id { get; set; }
A unique id for this variable. This is what it will be referred to in code.
Returns:
string—public int Sandbox.PrefabVariable.Order { get; set; }
Lower numbers appear first
Returns:
int—public System.Collections.Generic.List`1<Sandbox.PrefabVariable.PrefabVariableTarget> Sandbox.PrefabVariable.Targets { get; set; }
Component variables that are being targetted
public string Sandbox.PrefabVariable.Title { get; set; }
A user friendly title for this variable
Returns:
string—No results match this filter.