mirror of
https://github.com/0x7c13/Pal3.Unity.git
synced 2026-11-26 09:28:07 +08:00
17 lines
575 B
C#
17 lines
575 B
C#
// ---------------------------------------------------------------------------------------------
|
|
// Copyright (c) 2021-2022, Jiaqi (0x7c13) Liu. All rights reserved.
|
|
// See LICENSE file in the project root for license information.
|
|
// ---------------------------------------------------------------------------------------------
|
|
|
|
namespace Engine.Services
|
|
{
|
|
using UnityEngine;
|
|
|
|
public static class ShaderUtility
|
|
{
|
|
public static int GetPropertyIdByName(string propertyName)
|
|
{
|
|
return Shader.PropertyToID(propertyName);
|
|
}
|
|
}
|
|
} |