Files
ichni_Official/Assets/AmplifyShaderEditor/Plugins/Editor/Utils/NodeUpdateCache.cs
SoulliesOfficial 7580c4d87c 大更
2026-03-14 03:13:10 -04:00

26 lines
415 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace AmplifyShaderEditor
{
public class NodeUpdateCache : HashSet<ParentNode>
{
public bool Touch( ParentNode node )
{
if ( Contains( node ) )
{
// @diogo: already touched; cache hit
return true;
}
else
{
// @diogo: not touched yet; cache miss
Add( node );
return false;
}
}
}
}