public OverlayDataAsset GetOverlay()
    {
        #region 创建
        EditorUmaMaterial uMaterial = EditorUmaMaterialFactory.Creat(Name);

        IObjectBase texture_diffuse = new ObjectBase(texturePath);
        (new CharacterTexture(texturePath)).Handle();
        Texture2D dif = texture_diffuse.Load <Texture2D>();

        OverlayEditor    oeditor = new OverlayEditor(Fold, dif, Name, uMaterial);
        OverlayDataAsset overlay = oeditor.CreatOverlay();
        #endregion
        return(overlay);
    }
Exemple #2
0
    public void CreatPrefab()
    {
        EditorUmaMaterial uMaterial = EditorUmaMaterialFactory.Creat(obj.Name);
        Texture2D         dif       = texture_diffuse.Load <Texture2D>();

        ClothSlotOverlay       cso = new ClothSlotOverlay(obj, dif, Fold, uMaterial, restype);
        List <SlotOverlayItem> sos = cso.CreatData();

        if (sos == null)
        {
            return;
        }

        Dictionary <string, object> dic = new Dictionary <string, object>();

        dic["sos"] = sos;
        prefab.CreatPrefab(null, createPrefabFinish, dic);
    }