14 lines
326 B
C#
14 lines
326 B
C#
![]() |
using UnityEngine;
|
|||
|
using UnityEngine.UI;
|
|||
|
|
|||
|
namespace AllIn1VfxToolkit.Scripts
|
|||
|
{
|
|||
|
public class AllIn1GraphicMaterialDuplicate : MonoBehaviour
|
|||
|
{
|
|||
|
private void Awake()
|
|||
|
{
|
|||
|
Graphic graphic = GetComponent<Graphic>();
|
|||
|
graphic.material = new Material(graphic.material);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|