SScriptingResources
Index
Functions Index
Function Name
SResource GetResource (string 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.")
endProperties
Enabled
bool Enabled get set
Return whether the ScriptingResources component is Enabled or not
Resources
SResource[] Resources get
Returns an array of all resources contained within this component.
GameObject
SGameObject GameObject get
Property Description
Last updated
Was this helpful?

