Пример #1
0
        protected override Material LoadMaterial(ProceduralModelingMaterial type)
        {
            switch (type)
            {
            case ProceduralModelingMaterial.UV:
                return(Resources.Load <Material>("Materials/ProceduralTreeUV"));

            case ProceduralModelingMaterial.Normal:
                return(Resources.Load <Material>("Materials/ProceduralTreeNormal"));
            }
            return(Resources.Load <Material>("Materials/ProceduralTreeStandard"));
        }
        protected virtual Material LoadMaterial(ProceduralModelingMaterial type)
        {
            switch (type)
            {
            case ProceduralModelingMaterial.UV:
                return(Resources.Load <Material>("Materials/UV"));

            case ProceduralModelingMaterial.Normal:
                return(Resources.Load <Material>("Materials/Normal"));
            }
            return(Resources.Load <Material>("Materials/Standard"));
        }
        //材质载入
        private Material LoadMaterial(ProceduralModelingMaterial type)
        {
            switch (type)
            {
            case ProceduralModelingMaterial.UV:
            {
                return(Resources.Load <Material>("Materials/UV"));
            }

            case ProceduralModelingMaterial.Normal:
            {
                return(Resources.Load <Material>("Materials/Normal"));
            }
            }
            return(Resources.Load <Material>("Standard"));
        }