x


"Cleaning up leaked objects in scene"

Every so often, I see this show up in the console in the editor... What does this mean exactly? How does it apply my project?

more ▼

asked May 14 '12 at 04:58 AM

ina gravatar image

ina
3.4k 500 554 616

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

This message generally appears if you are modifying assets that are not actually part of your scene hierarchy, but instead real assets in your project folder, or when temporary assets get instantiated during play mode, which are no longer attached to actual GameObjects. This can happen for example by assigning to or mordifying MeshFilter.sharedMesh or Renderer.sharedMaterial.

When modifying objects at runtime, you usually want to use MeshFilter.mesh and Renderer.material instead, which only modify the object instances, not the project assets.

I think this can happen both in play mode and with Editor script.

more ▼

answered May 14 '12 at 02:29 PM

Wolfram gravatar image

Wolfram
9.1k 8 20 53

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1732
x111
x1

asked: May 14 '12 at 04:58 AM

Seen: 887 times

Last Updated: May 14 '12 at 02:29 PM