We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f199d3f commit 8193bc5Copy full SHA for 8193bc5
RasterPropMonitor/Auxiliary modules/PropBatcher.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Reflection.Emit;
@@ -261,9 +261,9 @@ public void VariableChangedCallback(float value)
261
}
262
263
264
- if (newEmissive != renderer.material.GetFloat(JSILabel.emissiveFactorIndex))
+ if (newEmissive != renderer.sharedMaterial.GetFloat(JSILabel.emissiveFactorIndex))
265
{
266
- renderer.material.SetFloat(JSILabel.emissiveFactorIndex, newEmissive);
+ renderer.sharedMaterial.SetFloat(JSILabel.emissiveFactorIndex, newEmissive);
267
268
269
0 commit comments