You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
817 B
38 lines
817 B
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; |
|
} |
|
}
|
|
|