Files
ichni_Official/Assets/AmplifyShaderEditor/Plugins/Editor/Utils/NodeUpdateCache.cs

26 lines
415 B
C#
Raw Normal View History

2026-03-14 03:13:10 -04:00
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;
}
}
}
}