error CS0117: `UnityEditor.PrefabUtility' does not contain a definition

FlowCanvas Forums Support error CS0117: `UnityEditor.PrefabUtility' does not contain a definition

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1952
    ndance
    Participant

    I just purchased FlowCanvas and downloaded it via the Asset Store within Unity, clicked Import, and I get the below errors and warnings and the then it stops importing. I have been searching and I can’t find a solution.

    Error
    Assets/ParadoxNotion/FlowCanvas/Module/Nodes/Variables/GetVariable.cs(66,36): error CS0117: UnityEditor.PrefabUtility' does not contain a definition forGetCorrespondingObjectFromSource’

    Warnings
    Assets/ParadoxNotion/FlowCanvas/Framework/_Commons/Design/PartialEditor/EditorUtils/EditorUtils_ReflectedInspector.cs(182,29): warning CS0618: UnityEditor.EditorGUILayout.EnumMaskPopup(UnityEngine.GUIContent, System.Enum, params UnityEngine.GUILayoutOption[])' is obsolete:EnumMaskPopup has been deprecated. Use EnumFlagsField instead.’

    Assets/ParadoxNotion/FlowCanvas/Framework/Design/PartialEditor/Editors/BlackboardEditor.cs(372,29): warning CS0618: UnityEditor.EditorGUILayout.EnumMaskPopup(UnityEngine.GUIContent, System.Enum, params UnityEngine.GUILayoutOption[])' is obsolete:EnumMaskPopup has been deprecated. Use EnumFlagsField instead.’

    #1953
    Gavalakis
    Keymaster

    Hello,

    To fix the error, please open up GetVariable.cs and change line #65 to #if UNITY_2018_2_OR_NEWER.

    Regarding the warnings, they are not harmful and will be fixed in the next version.

    Let me know if the fix works for you.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    #1957
    ndance
    Participant

    Hey,

    I can’t change it. I’m trying to import it from the unity store within unity so I don’t have access to the code to update it.
    It stops importing once these errors appear.

    #1961
    Gavalakis
    Keymaster

    Hello again,

    Hmm… Unity should not by any means stop importing a package in the middle of the import process, even if a compile error such as this is encountered. The full contents of the package should still be imported. At least this has never happened to me before.
    Are you certain that there is no GetVariable.cs file found in your project by searching within it?

    In either case though and for your convenience, I can send you the fixed full package if you want.
    If so, please send me an email ([CONTACT FORM LINK]) along with your order ID, and I will send you the fixed package as soon as possible.

    Thank you.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.