Prefered Types Editor Not Saving Certain Types

NodeCanvas Forums Support Prefered Types Editor Not Saving Certain Types

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9580
    Async0x42
    Participant

    When I went to remove a component, I added the type to the Preferred Types Editor, it shows, however afterwards it doesn’t show in the Remove Component menu. After reopening the Preferred Types Editor, it’s not in the list anymore.

    I can reproduce it as simple as:
    1) Add CC_Pixelate (from Colorful asset) to Preferred Types -> Displays on the bottom of the list
    2) Close Preferred Types Window
    3) Re-open Preferred Types -> No CC_Pixelate in the list

    It is saved properly the first time, however, as I stepped through it with the debugger and it was there until the very end, as well as:
    1) Add CC_Pixelate
    2) Add CC_Pixelate a second time -> Type already in list

    In the windows registry however…
    CC_Pixelate DOES show up. So it is saving, but it’s not loading for some reason (?)

    Note: Apparently all of the CC_***’s I tried, save but can’t be loaded in the list. All of my own components are able to be saved and displayed, but Colorful ones, for some reason, aren’t.

    And while on the topic, “Prefered” should be “Preferred” (Didn’t realize until Chrome flagged the word for me and then I looked at the dictionary)

    #9582
    Gavalakis
    Keymaster

    Hey,

    Yeah. There is some filtering done to the types added in the list. Basicaly if a type has no public methods or properties, it is filtered out from showing in the blackboard, but I’ve also noticed some other bug as well in the types editor window. It’s all fixed now, but here are some things you can do until the next release:

    1) Open up PreferedTypesEditorWindow.cs and change OnEnable to:

    This fixes the Editor window list from reseting.

    2) Open up UserTypePrefs.cs and at line #103, change the whole ‘if’ check to:

    This fixes the filtering done to also check for fields (instead of only methods/properties)

    Cheers!

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

    #9581
    Async0x42
    Participant

    Thanks, works perfectly now!

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