SScriptingResources

Index

Functions Index

Function Name

Properties Index

Property Name

Functions

GetResource

SResource GetResource (string name)

Returns the SResource with the specified name, or else returns nil if not found.

Parameter
Type
Description

resource = Space.Host.ExecutingObject.Resources.GetResource("ResourceName")
local thisObject=Space.Host.ExecutingObject
local thisObjectResource=thisObject.Resources.GetResource("Test")
if thisObjectResource == nil then
    Space.Log("That resource was not found.")
else
    Space.Log("That resource exists and can be used.")
end

Properties

Enabled

bool Enabled get set

Return whether the ScriptingResources component is Enabled or not

Space.Host.ExecutingObject.Resources.Enabled = true

Resources

SResource[] Resources get

Returns an array of all resources contained within this component.

arrayOfResources = Space.Host.ExecutingObject.Resources.Resources

GameObject

SGameObject GameObject get

Property Description

theGameObject = Space.Host.ExecutingObject.Resources.GameObject

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.