Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

m_CachedSmoothValue does not exist in the current context

Discussion in 'High Definition Render Pipeline' started by ANUBISKONG, Dec 5, 2020.

  1. ANUBISKONG

    ANUBISKONG

    Joined:
    Nov 16, 2016
    Posts:
    47
    Library\PackageCache\com.unity.visualeffectgraph@8.3.1\Runtime\Utilities\PropertyBinding\Implementation\VFXInputButtonBinder.cs(47,53): error CS0103: The name 'm_CachedSmoothValue' does not exist in the current context


    And my unity crash when I check custom pass volume in inspector.



    NullReferenceException: Object reference not set to an instance of an object
    UnityEditor.Rendering.HighDefinition.DrawRenderersCustomPassDrawer.ShowMsaaObjectInfo () (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Editor/RenderPipeline/CustomPass/DrawRenderersCustomPassDrawer.cs:192)
    UnityEditor.Rendering.HighDefinition.DrawRenderersCustomPassDrawer.GetPassHeight (UnityEditor.SerializedProperty customPass) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Editor/RenderPipeline/CustomPass/DrawRenderersCustomPassDrawer.cs:335)
    UnityEditor.Rendering.HighDefinition.CustomPassDrawer.GetPropertyHeight (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Editor/RenderPipeline/CustomPass/CustomPassDrawer.cs:273)
    UnityEditor.Rendering.HighDefinition.CustomPassVolumeEditor+<>c__DisplayClass18_0.<CreateReorderableList>b__2 (System.Int32 index) (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Editor/RenderPipeline/CustomPass/CustomPassVolumeEditor.cs:211)
    UnityEditorInternal.ReorderableList.GetElementYOffset (System.Int32 index, System.Int32 skipIndex) (at <641e10a8c2754c33bba9be6a77288544>:0)
    UnityEditorInternal.ReorderableList.GetElementYOffset (System.Int32 index) (at <641e10a8c2754c33bba9be6a77288544>:0)
    UnityEditorInternal.ReorderableList.GetListElementHeight () (at <641e10a8c2754c33bba9be6a77288544>:0)
    UnityEditorInternal.ReorderableList.GetHeight () (at <641e10a8c2754c33bba9be6a77288544>:0)
    UnityEditor.Rendering.HighDefinition.CustomPassVolumeEditor.DrawCustomPassReorderableList () (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Editor/RenderPipeline/CustomPass/CustomPassVolumeEditor.cs:174)
    UnityEditor.Rendering.HighDefinition.CustomPassVolumeEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.render-pipelines.high-definition@8.3.1/Editor/RenderPipeline/CustomPass/CustomPassVolumeEditor.cs:69)
    UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <641e10a8c2754c33bba9be6a77288544>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)


    After updating my project from Unity 2020.1.15f1c1 to 2020.1.16f1c1
     
    Last edited: Dec 6, 2020
  2. Haraxx

    Haraxx

    Joined:
    Mar 20, 2018
    Posts:
    1
    Same problem here with 2020.1.16

    VFXInputButtonBinder.cs Line 23
    #if ENABLE_LEGACY_INPUT_MANAGER
    float m_CachedSmoothValue = 0.0f;
    #endif

    can not comment out (#if & #endif), will ever auto rest by the Editor
     
  3. Dielji

    Dielji

    Joined:
    Oct 16, 2016
    Posts:
    4
    I was able to work around this error for now by changing the following setting to enable both the legacy input manager and new input package at the same time:

    Project Settings -> Player -> Other Settings -> Active Input Handling -> "Both"
     
    pekdemir likes this.
  4. grofie

    grofie

    Joined:
    Dec 9, 2013
    Posts:
    30
    Same problem with 2020.1.17. Did you guys commit a bug report?

    And I can confirm: Setting the input handling to 'both' as @Dielji pointed out is a valid work around for this problem.
     
    Last edited: Dec 10, 2020
    ducceschioa and pekdemir like this.
  5. ducceschioa

    ducceschioa

    Joined:
    Nov 1, 2020
    Posts:
    9
    Same here. Unity 2020.1.17. Mac OS.
     
  6. AznableMiao

    AznableMiao

    Joined:
    Apr 19, 2017
    Posts:
    9
    Same. Unity 2020.1.17. Win10
     
    tomwolf1210 likes this.
  7. HavanaBanana

    HavanaBanana

    Joined:
    Jul 3, 2017
    Posts:
    4
    Same Problem in Unity 2020.1.17 and win10..
     
  8. Jointy87

    Jointy87

    Joined:
    Dec 19, 2019
    Posts:
    21
    Same. Unity 2020.1.17f1 on Windows10