Search Issue Tracker

Fixed in 2020.2.X



Found in



Issue ID




[VFX][HDRP]NullReferenceException thrown on assigning 3D Texture in Vector Field in Default VFX Resources

Visual Effects


NullReferenceException thrown on assigning 3D Texture in Vector Field in Default VFX Resources

Steps to Repro:

1. Create a new Project in HDRP Template
2. Select Project > Assets > VFXDefaultResources > Inspector > Vector Field
3. Assign 3d_fractal_noise_sample01_Texture3d

Reproducible on: 2021.1.0a4, 2021.1.0a1 with SRP package: 10.1.0

Working fine on: 2020.2.0b10 with SRP package: 10.1.0,
2020.1.11f1 with SRP 8.2.0

Environment: Windows and Mac

Stack Trace:

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Texture3DPreview.GetTextureResolution (UnityEngine.Object[] textures) (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.Texture3DPreview.GetTextureResolution (UnityEngine.Texture texture) (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.Texture3DPreview.GetInfoString () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.Texture3DInspector.GetInfoString () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.EditorWrapper.GetInfoString () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.ObjectSelector.PreviewArea () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.ObjectSelector.OnObjectGridGUI () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.ObjectSelector.OnGUI () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEditor.HostView.OldOnGUI () (at <bd5493fc3cac4e0ca13e04a4b569b9a7>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <462c567ad9f94e25aea5e259d82db8eb>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.