-
Notifications
You must be signed in to change notification settings - Fork 0
inst_get_class
NikkoTC edited this page Sep 4, 2023
·
5 revisions
With this function you can get class ID of a given class instance.
inst_get_class(inst);
Argument | Description |
---|---|
inst | The class instance struct |
Real (The unique class ID)
var cls = inst_get_class(inst);
var newInst = create(cls);
The above code will get the class ID from the instance and then create a new class instance.