class PrefabFile : GameResource

robot_2Generated
code_blocksInput

Description

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.

Members

Instance Members

Member NameSummary
RootObjectContains the original JSON read from File.
ResourceVersionGets the version of the resource.
ShowInMenuIf true then we'll show this in the right click menu, so people can create it.
MenuPathIf ShowInMenu is true, this is the path in the menu for this prefab.
MenuIconIcon to show to the left of the option in the menu.
DontBreakAsTemplateIf true then the prefab will not be broken when created as a template.
GetMetadataRetrieves metadata for the prefab using a specified title and default value.