LocalObject
The LocalObject class is the second of two base objects that all other objects inherits from, the other one being RemoteObject.
It contains an inlined C++ object that is owned by Lua.
Inheritance
None
Methods
IsValid()
- Return type:
bool - Returns: always
truefor historic compatibility reasons
Example
-- 'FText' inherits from LocalObject.
local Text = FText("SomeText")
if Text:IsValid() then
print("This should always happen\n")
else
print("This should never happen\n")
end