(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Members
Enabled
Status of enable or disable room floor component.
floor = Space.Scene.Floors[0].Floor
--get first order floor.
floor.Enabled = false
--disable floor component.
Name
Name of this floor.
floor = Space.Scene.Floors[0].Floor
--get first order floor.
Space.Log(floor.Name)
--output name of this floor.
Description
Description of this floor.
floor = Space.Scene.Floors[0].Floor
--get first order floor.
Space.Log(floor.Description)
--output the description of this floor.
Properties
IsDefaultFloor
bool IsDefaultFloor
{get;}
Is this default floor?
floor = Space.Scene.Floors[0].Floor
--get first order floor.
Space.Log(floor.IsDefaultFloor)
--output if this floor is default floor.
Furniture
Get all furniture game objects.
floor = Space.Scene.Floors[0].Floor
--get first order floor.
if floor.Furniture ~=nil and #floor.Furniture > 0 then
Space.Log(floor.Furniture[0].Name)
end
--get all furniture in this floor, and output names of them.
Scripting Portal
|
|
Common
|
|
|
Key Classes
|
|
|
Helper Classes
|
|
|
Scripting samples and tutorials
|
|
|