I've never used this before (and I can't test it ATM), but from the docs, I'd expect it to work like this:
Assuming you have a valid EncodedObjectAsID
...
- It should have an
id
property. That's the same value returned by calling get_instance_id()
on the original object
- You can pass that
id
value to instance_from_id(id)
- That will return the object instance represented by the passed
id
Untested, but if your original EncodedObjectAsID
is stored in myObject
, I'd think this would return the original object:
var org_object = instance_from_id(myObject.id)