How to handle AssetReference?

Forums 💬 FlowCanvas ⚙️ Support How to handle AssetReference?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11934
    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?

      #11935
      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:

        [attachment file=”CustomVariableType.png”]

        Hm… What version of FlowCanvas are you using please?

        Thank you.

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