How to handle AssetReference?

FlowCanvas Forums Support How to handle AssetReference?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3598
    jonatan
    Participant

    We are using wrapped AssetReferenceTs in our project as we are working with addressables. The type is added in the Prefered types editor.

    public class CustomAssetReference : AssetReferenceT<Custom>
    {
    public CustomAssetReference(string guid) : base(guid) { }
    }

    In Unity’s visual scripting this was needed to be able to use the AssetReferenceT<> in the script node editor. We have nodes that needs a “CustomAssetReference” as parameter. But it wont work for me, as seen in the picture the Object editor don’t have a clue what a CustomAssetReference is. What am I doing wrong?

    Attachments:
    You must be logged in to view attached files.
    #3600
    Gavalakis
    Keymaster

    Hello there,

    I presume you have added the CustomAssetReference type in the preferred types editor, yes?
    I just tried the following in latest version and it working correctly:

    CustomVariableType

    Hm… What version of FlowCanvas are you using please?

    Thank you.

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

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.