NET:LavishScriptAPI.LavishScriptObject.GetValue
Jump to navigation
Jump to search
Contents
Overview
Performs the equivalent of Object.ToString, converting the result to the desired type.
Reference Library
Fully Qualified Name
- LavishScriptAPI.LavishScript.Objects.GetObject
- LavishScriptAPI namespace
- LavishScript class
- LavishScriptObject class
- GetValue function
- LavishScriptObject class
- LavishScript class
Declaration
public T GetValue<T>()
Parameters
None
Return Value
- T
- The converted result of LavishScript's "ToString" operation on the LavishScript object.
Examples
Frame.Lock(); LavishScriptObject Obj = LavishScript.Objects.GetObject("LavishScript"); if (Obj == null) { InnerSpace.Echo("object not found"); } else { /* "LavishScript" object's ToString value is its version number, which follows the form of a typical float */ float Version = Obj.GetValue<float>(); InnerSpace.Echo("LavishScript Version " + Version.ToString()); } Frame.Unlock();