Announcement

Collapse
No announcement yet.

Accessed None Trying to Read Property

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Accessed None Trying to Read Property

    Hi everyone,
    In my character BP I create an Inventory widget on begin play event and promote it to a variable.
    I later access it from my character anim BP, but then I get a Blueprint Runtime Error: "Accessed none trying to read property InventoryRef".
    Anyone know why?
    Attached Files

    #2
    This is most likely because Init Anm is being called before your pawn's Begin Play. There's no guaranteed order to this.

    What you can do to work around this is implement an interface with your anim BP and send an interface message from your pawn to your pawn's anim BP after you've set up the inventory on your pawn.

    If you're not familiar with interfaces, see this: https://docs.unrealengine.com/en-US/...ace/index.html
    iTween For UE4
    Procedural pathed animation for actors, components & UMG - $0
    Runtime DataTable
    DataTables dynamically loaded from text or Google Sheets while your game is running!
    easyCSV
    Fast, cheap, and accurate CSV parsing at runtime!

    Comment


      #3
      Thanks for the advice! I'll look into it.

      Comment

      Working...
      X