New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No SuperCustomProperties for Tiled objects #87
Comments
Use the PrefabUtility to instantiate prefabs when doing a prefab replacement. This appears to use "true" prefab instances instead of cloning the prefabs used. Bumped version to 1.5.3
Hi there, @Dalqin. I wasn't aware that prefab instances were not being instantiated/referenced correctly. Can you check out the recently updated version 1.5.3 of SuperTiled2Unity? I'm now using a different method for instantiating prefabs and it appears to be working for me as expected. As far as See this repository, and in particular this part of the documentation: https://github.com/Seanba/SuperPrefabReplacement#custom-properties-supported |
I checked out 1.5.3 of SuperTiled2Unity and see my treasure chest Tiled object being imported as an instance of my treasure chest prefab in Unity. Yay! The documentation you linked shows me I was expecting incorrect behavior regarding objects and custom properties. I was able to get my I dub my issue solved, and will close this ticket. |
I have a Tiled map with some objects in an object layer, using a ObjectType to map a Tiled object to a treasure chest prefab when importing the
.tsx
map file into Unity. In Tiled, this object has custom properties. I was hoping to see aSuperCustomProperties
component with these custom properties upon importing my.tsx
map into Unity, but I do not see aSuperCustomProperties
component on my imported object.Tiled - showing custom properties on an object
Unity - hoping to see
SuperCustomProperties
with my "ItemData" property.Looks like the Tiled object, my treasure chest, is being replaced with an GameObject identical to my treasure chest prefab (but not an instance of my prefab) with no custom properties that I can find. Am I looking in the right place?
I've two questions, assuming I have not made a mistake in setting this up:
Thank you!
The text was updated successfully, but these errors were encountered: