Jump to content

Tiled object custom properties get phaser 3 code


zsoltkiraly
 Share

Recommended Posts

  • 1 year later...
  • 1 year later...
On 5/23/2020 at 2:05 AM, msanatan said:

I had the same problem! So in put a console.log() for the object I loaded and saw this:

sprite-data-property.thumb.png.a6e3e60eb7b42bca0277baff2e7ad507.png

 

The custom data from Tiled goes to your sprite's data property. You can read the docs for more info on the data management component. Hope this helps!

Amazing thanks, may I also add that sometimes data is null.
I think this happens when in Tiled you set custom properties for an object in the object edit menu, but if you change the default state it changes from null to DataManager with the appropriate data.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...