GetResource (string name)
Returns the SResource with the specified name, or else returns nil if not found.
bool Enabled get set
Return whether the ScriptingResources component is Enabled or not
SResource[] Resources get
Returns an array of all resources contained within this component.
GameObject get
Property Description
SResource GetResource (string name)
bool Enabled get set
SResource[] Resources get
SGameObject GameObject get
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.")
endSpace.Host.ExecutingObject.Resources.Enabled = truearrayOfResources = Space.Host.ExecutingObject.Resources.ResourcestheGameObject = Space.Host.ExecutingObject.Resources.GameObject