更新
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace GraphicsCat
|
||||
{
|
||||
public static class MaterialExtensions
|
||||
{
|
||||
public static void SetKeyword(this Material mat, string keyword, bool val)
|
||||
{
|
||||
if (val == true)
|
||||
mat.EnableKeyword(keyword);
|
||||
else
|
||||
mat.DisableKeyword(keyword);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user