Exemple #1
0
    public SpriteDicing.DicedSprite GetDiceBillboardByKeyContain(string key, SpriteDicing.DicedSpriteAtlas atlas)
    {
        if (key == "" || key == null)
        {
            return(null);
        }

        return(atlas.GetSpriteContainName(key));
    }
 public AtlasBuilder(SerializedObject serializedObject)
 {
     this.serializedObject = serializedObject;
     target    = serializedObject.targetObject as DicedSpriteAtlas;
     atlasPath = AssetDatabase.GetAssetPath(target);
 }