Prefab
The Prefab class extends the base Item class to represent prefabricated objects within the game engine.
Inherits from
Usage
To use this class, add the following require at the top of your script:
Reference
create
Create a new prefab
Parameters
selfattributes(table): list of attributes. without, the prefab will be created with default values
Returns
Prefab: of the created prefab