class PrefabVariable

book_4_sparkGenerated
code_blocksInput

Description

The PrefabVariable class in the Sandbox namespace represents a definition for a prefab variable. It is used to define properties and behaviors that can be applied to prefabs within the s&box environment.

Members

Instance Properties

Member NameSummary
IdA unique id for this variable. This is what it will be referred to in code.
TitleA user friendly title for this variable.
DescriptionA user friendly description for this variable.
GroupAn optional group for this variable to belong to.
OrderLower numbers appear first.
TargetsComponent variables that are being targeted.

Instance Methods

Member NameSummary
AddTargetAdds a target to the prefab variable using a unique identifier and property name.