shaoxiadiablo/Assets/AGame/Scripts/Utils/MaterialExtensions.cs

34 lines
904 B
C#
Raw Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2020-12-17
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "MaterialExtensions" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace G
{
/// <summary>
/// 类功能描述
/// </summary>
public static class MaterialExtensions
{
public static Color GetTintColor(this Material material)
{
return material.GetColor("_TintColor");
}
public static void SetTintColor(this Material material, Color value)
{
material.SetColor("_TintColor", value);
}
}
}