Prefab
Inherits from
Usage
To use this class, add the following require at the top of your script:
local Prefab = require 'engine/items/prefab'
Reference
-
class Prefab
- module:
-
create(attributes)
Create a new prefab
- Parameters:
attributes (table
) – list of attributes. without, the prefab will be created with default values
- Returns:
the created prefab
- Return type:
Prefab
Examples