Seanba / Tiled2Unity

Export Tiled Map Editor (TMX) files into Unity
Other
495 stars 120 forks source link

ICustomTiledImporter not called #184

Open Foveluy opened 5 years ago

Foveluy commented 5 years ago

Great tool, nice job.

I have able to import my tile map into unity by using this awesome tool

but when try to access my tile info, it become handy.

using UnityEngine;
using System.Collections;
using System.Collections.Generic;

[Tiled2Unity.CustomTiledImporter]
public class CustomImporter_StrategyTiles : Tiled2Unity.ICustomTiledImporter
{

    public void HandleCustomProperties(GameObject gameObject,
        IDictionary<string, string> customProperties)
    {

        Debug.Log("213123");
    }

    public void CustomizePrefab(GameObject prefab)
    {
        // Do nothing
    }
}

the code above doesn't get called.

2018-12-13 11 24 01

i did add an Editor to handle this, but still not work as i expect. Any help from you?