Cannot Reproduce

Super Unit colour on exception

odyssey96 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3

When an exception is thrown at a unit, it shows red in the graph (great!)

When an exception is thrown at a unit in a graph within a super unit, the super unit colour will remain blue even though a unit within that is red (if you double click to view the graph).  

I would have thought propogating that error colour status up to the super unit would be a good idea so when you're looking at a graph, you know which super unit to inspect.  If you have 10 super units for example, you have to inspect each one until you find the unit with error.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

I have since found out it actually does this in some instances - MissingComponentException (Animator.Play on an object without an animator for example) will not do this, but an ArgumentException (GetComponentsInChildren using GameObject as a type) will, so it's a little inconsistent.  I would prefer to ensure all exceptions would repeat this behaviour.

Under Review

I'll switch this to a bug thread then, I'll look into it. Thanks for the report!

Cannot Reproduce

Testing on v.1.2.3a3, I can't reproduce this. The ArgumentException with the exact use case you described does color the parent super unit in red. Can you confirm this still happens in the latest version and if so, send me a small scene/project where the issue is isolated?