IndieGame/client/Packages/com.unity.ugui@1.0.0/Tests/Runtime/Graphic/RawImageTestHook.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

39 lines
817 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class RawImageTestHook : RawImage
{
public bool isGeometryUpdated;
public bool isCacheUsed;
public bool isLayoutRebuild;
public bool isMaterialRebuild;
public void ResetTest()
{
isGeometryUpdated = false;
isLayoutRebuild = false;
isMaterialRebuild = false;
isCacheUsed = false;
}
public override void SetLayoutDirty()
{
base.SetLayoutDirty();
isLayoutRebuild = true;
}
public override void SetMaterialDirty()
{
base.SetMaterialDirty();
isMaterialRebuild = true;
}
protected override void UpdateGeometry()
{
base.UpdateGeometry();
isGeometryUpdated = true;
}
}