The PrefabFile class in the Sandbox
namespace represents a prefab resource in the game. It extends the GameResource
class and provides properties and methods to manage prefab metadata and behavior.
The PrefabFile class in the Sandbox
namespace represents a prefab resource in the game. It extends the GameResource
class and provides properties and methods to manage prefab metadata and behavior.
Member Name | Summary |
---|---|
RootObject | Contains the original JSON read from File. |
ResourceVersion | Gets the version of the resource. |
ShowInMenu | If true then we'll show this in the right click menu, so people can create it. |
MenuPath | If ShowInMenu is true, this is the path in the menu for this prefab. |
MenuIcon | Icon to show to the left of the option in the menu. |
DontBreakAsTemplate | If true then the prefab will not be broken when created as a template. |
GetMetadata | Retrieves metadata for the prefab using a specified title and default value. |