Returns the name of the resource as entered in the scripting runtime
ResourceName = Space.Resources[1].Name
--the below script will search through the Scripting Runtime's resources--and return the first instance of an Animation Clip--[You need to add a few resources to the scripting runtime and make one of them an animation]resources = Space.Resourcesfor i =1, #resources doif resources[i].Type =="AnimationClip" then Space.Log("Resource #".. i .." is an Animation Clip. The resource name is: " .. resources[i].Name)breakendend
--the below script will search through the Scripting Runtime's resources--and return the first instance of an Animation Clip--[You need to add a few resources to the scripting runtime and make one of them an animation]resources = Space.Resourcesfor i =1, #resources doif resources[i].Type =="AnimationClip" then Space.Log("Resource #".. i .." is an Animation Clip. The resource name is: " .. resources[i].Name)breakendend
AsText
string AsTextget
Converts the resource's type from SResource type to string