Slow working process when activating an object

hello,

i have a problem when i click(activate) some Objects in the Hierarchy…it seems to load something and it need time for 5 till 10 seconds to continiue working?

Somebody knows how to fix this problem?

Does this happen intermittently or does it always happen with the same objects? Does it happen mainly with particular types of objects?

it happens always with the same objects. But i can`t see any difference to other objects or objects types?

i attached a screenshot…it happens when clicking the Player Object for example. Can you see a mistake i made?

Is there any chance you can file a bug report for this and attach the project? It’s unlikely you are doing anything wrong as such (unless you are using an editor script that directly causes the slowdown :wink: ).

hello andeeee,

attached there is a HUD.js Script where it also happens.
Maybe you can see what i am doing wrong in this script.

Thank you.

regards

325267–11472–$hudjs_709.zip (2.36 KB)

There doesn’t appear to be anything in the script that would cause the slowdown. However, I notice you have an ExecuteInEditMode attribute commented out. Do the other scripts have this attribute active? If so, the script will be called regularly in the editor even if the game isn’t running. If any of the scripts have OnDrawGizmos/OnDrawGizmosSelected functions, then these will also be called during editing. If they are complicated or contain bugs then they could slow the editor considerably.

no thats not the reason…i uncommend all ExecuteInEditMode and all OnDrawGizmos/OnDrawGizmosSelected functions.

It`s finaly not better yet!

Well then, I think you may well have found a bug. Please can you file a report for it (menu: Help > Report A Problem).

OK i will do this… thanx