zsoltkiraly Posted February 22, 2019 Share Posted February 22, 2019 Hi everyone! I have a problem. If I write a custom properties for the objects in the Tiled programs. How get custom properties? Link to comment Share on other sites More sharing options...
msanatan Posted May 23, 2020 Share Posted May 23, 2020 I had the same problem! So in put a console.log() for the object I loaded and saw this: 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! Link to comment Share on other sites More sharing options...
msanatan Posted May 29, 2020 Share Posted May 29, 2020 I should add that I got that output with Phaser version 3.23.0 (the most recent one at the time of writing). It's possible that it may not have been in the version you used at the time Link to comment Share on other sites More sharing options...
conlatoso Posted January 8, 2022 Share Posted January 8, 2022 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: 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 More sharing options...
Recommended Posts