Description
The StateHasChanged
method is a virtual method in the Resource
class within the Sandbox namespace. This method should be called after a resource has been edited through the inspector. It is used to notify the system that the state of the resource has changed, which may trigger necessary updates or refreshes in the system.
Usage
To use the StateHasChanged
method, ensure that you are working with an instance of a class that derives from Resource
. After making changes to the resource properties via the inspector, call this method to update the system about the changes.
Example
// Assuming 'myResource' is an instance of a class derived from Resource
myResource.StateHasChanged();
// This should be called after modifying the resource properties
// to ensure the system is aware of the changes.