Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
3.0.0-pre.7
Issue ID
CMCL-1493
Regression
No
Null value can be passed to the Add Extention field of Cinemachine Camera after a Component is added
How to reproduce:
1. Open any project with Cinemachine installed
2. Add a "Cinemachine Camera" Component to a GameObject
3. In the Component, select an Extention in the "Add Extention" field
4. In the same Component, in the "Add Extention" field select "(select)"
5. Observe the Console
Actual result: Null value is passed to the field, error in Console displayed
Expected result: By clicking the option, no value should be passed
Reproducible with: 3.0.0-pre.7
Error message:
"ArgumentException: Type cannot be null.
Unity.Cinemachine.Editor.CmCameraInspectorUtility+<>c__DisplayClass5_0.<AddExtensionsDropdown>b__0 (UnityEngine.UIElements.ChangeEvent`1[T] evt) (at ./Library/PackageCache/com.unity.cinemachine@3.0.0-pre.7/Editor/Utility/CmCameraInspectorUtility.cs:252)
UnityEngine.UIElements.EventCallbackFunctor`1[TEventType].Invoke (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.EventCallbackRegistry.InvokeCallbacks (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.PropagationPhase propagationPhase) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.CallbackEventHandler.UnityEngine.UIElements.IEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.DefaultDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.VisualElement.SendEvent (UnityEngine.UIElements.EventBase e) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.BaseField`1[TValueType].set_value (TValueType value) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.PopupField`1[T].set_value (T value) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.PopupField`1[T].ChangeValueFromMenu (T menuItem) (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEngine.UIElements.PopupField`1+<>c__DisplayClass26_0[T].<AddMenuItems>b__0 () (at <15230963ad214ef9972d854a56d0846d>:0)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at <d6d088ded9754d9790b4a803014a22a0>:0)"
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
Cannot repro on main branch