Пример #1
0
        /// <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);
        }
Пример #2
0
        /// <summary>
        /// 加载贴图
        /// </summary>
        static public ResRef LoadTexture(ResDescTexutre desc)
        {
            var url = PathToUrl(desc.name, ResType.Texture);

            return(LoadResByUrl <ResTexture>(url, desc.name, null, desc));
        }