Jump to content

changing element creator resource


itsHasaN

Recommended Posts

hi, as you may know when we creating an element it will connect to the resource, and that resource will become his parent, and it will get destroyed on resource stop.

i am creating an api resource, there is an custom made element, i want to change its creator resource to the resource that used this api resource exported function to create this new element so it dont get destroyed when the api resource stop or restarted. i tried using

setElementParent(element, getResourceDynamicElementRoot(sourceResource) )

but the element would still destroy when the api resource stop, any idea how can i achieve this?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...