/// <summary> /// Clone /// </summary> /// <param name="cloned"></param> /// <returns></returns> public IResDesc Clone(GameObject cloned) { var d = new ResDescTexutre { name = name, mat = mat, propName = propName, propId = propId }; return(d); }
/// <summary> /// 加载贴图 /// </summary> static public ResRef LoadTexture(ResDescTexutre desc) { var url = PathToUrl(desc.name, ResType.Texture); return(LoadResByUrl <ResTexture>(url, desc.name, null, desc)); }