I've asked this in the Area and really didn't get any response.
When defining a struct you can use "ON CREATE" function to initialise the function
as a default constructor or whatever
There is also a copy or clone constructor on offer
but there doesn't seem to be a default destructor
so you can't type "delete mystructinstance" you get " No "delete" function for (mystruct"
so I've done a work around that involves a function called .del
that cleans up after the struct is not needed and has to be manually called to delete any scene elements created and do make all the variables Undefined. I tried "free" like used for materials, it doesn't throw an error and says "OK"
but it also doesn't seem to do anything to the instantiated struct at all.
Is there a better way ? it just feels like a hack
When defining a struct you can use "ON CREATE" function to initialise the function
as a default constructor or whatever
There is also a copy or clone constructor on offer
but there doesn't seem to be a default destructor
so you can't type "delete mystructinstance" you get " No "delete" function for (mystruct"
so I've done a work around that involves a function called .del
that cleans up after the struct is not needed and has to be manually called to delete any scene elements created and do make all the variables Undefined. I tried "free" like used for materials, it doesn't throw an error and says "OK"
but it also doesn't seem to do anything to the instantiated struct at all.
Is there a better way ? it just feels like a hack
