+2
Unity Bug

Get stuck on Adjusting the material value...!!

GSK 2 months ago • updated 2 months ago 9 1 duplicate

It's a new project,and I only input 1.42 bolt....

First I create a particle system, use the standard shader for the particle system material...and adjust the material value...

Then It get stuck ...

other computer is the same...

Bolt Version:
1.42
Unity Version:
2018.3.6
.NET Version:
2.0

Duplicates 1

oh...I used the wrong ID when I post the topic....

Now this is my correct ID...

+1
Under Review

Hi GSK,

I'm not sure I understand how that is Bolt related. Is there a Machine on your Particle System object? I don't see one in the inspector and the profiler doesn't show any Bolt-related calls.

Thank you for your reply,I just input the Bolt from asset store in a new project and did nothing...It will get stuck when I adjust the standard shader....

If I delete the Bolt folder.It become normal....I tried this on three different computers and unity 2018.3.2~2018.3.13......New a project--->input Bolt--->create a particle system--->give a standard shader to the particle system-->adjust the material value-->just stuck...

don't  need to add the component of the machine...just input bolt...

Unity Bug

So I looked into this further, and it's a little complicated.

There is always an important slowdown when editing a material property in Unity, even in a blank project. Depending on your machine, it may or may not be noticeable (33ms or more). This slowdown is caused by very inefficient code in the particle system inspector, which uses reflection on all loaded types in the project at every frame.

Now, the slowdown is indeed somehow much worse with Bolt installed. My educated guess is that Bolt assemblies have lots of generic types, which makes the FullName property take longer to compute. However, it's nothing I can control directly, because it's happening at the Unity and .NET level.

I filed a bug report with Unity, because iterating on all types in a codebase at every OnGUI call is definitely something that should be avoided at all times. You can track the report here: https://fogbugz.unity3d.com/default.asp?1149518_tc2rgpfsg9dh4g51 

Thank you very much!!!!I will track the report!

It will not happen in Unity 2018.2.18....