Function GridGraphRule.SetDirty
SetDirty
()
Call if you have changed any setting of the rule.
Public
void SetDirty ()
Call if you have changed any setting of the rule.
This will ensure that any cached data the rule uses is rebuilt. If you do not do this then any settings changes may not affect the graph when it is rescanned or updated.
The purpose of this method call is to cause the Hash property to change. If your custom rule overrides the Hash property to return a hash of some settings, then you do not need to call this method for the changes the hash function already accounts for.