Recommended Posts

Once a ray is created, is it possible to dispose/delete the Ray so it can be cleared by JavaScript garbage collection?

For instance, what happens to the Rays that are using a disposed mesh as an origin?

Share this post


Link to post
Share on other sites

Are you seeing that the memory is still existing? I believe it should be garbage collected as soon as there are no references to it existing, just like Vector3 or Quaternion objects.

Share this post


Link to post
Share on other sites

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.