JUtils
A unity utilities library
JUtils.ResourcePlayModeChangeCallbackReceiverAttribute Class Reference

Receive a call when the play mode has been changed in a resource. Can be used to reset some data of a resource More...

Inheritance diagram for JUtils.ResourcePlayModeChangeCallbackReceiverAttribute:
Collaboration diagram for JUtils.ResourcePlayModeChangeCallbackReceiverAttribute:

Public Member Functions

 ResourcePlayModeChangeCallbackReceiverAttribute (string resourcesFolder)
 

Public Attributes

readonly string folder
 

Detailed Description

Receive a call when the play mode has been changed in a resource. Can be used to reset some data of a resource

[ResourcePlayModeChangeCallbackReceiver(resourcesFolder = "Events")] public partial class EventChannel : IResourcePlayModeChangeCallbackReceiver // You don't need to inherit from IResourcePlayModeChangeCallbackReceiver. It helps with getting the functions available { // Must be public! public void OnPlayModeEnter() { }

// Must be public!
public void OnPlayModeExit() {
    listeners = null;
}

}

Constructor & Destructor Documentation

◆ ResourcePlayModeChangeCallbackReceiverAttribute()

JUtils.ResourcePlayModeChangeCallbackReceiverAttribute.ResourcePlayModeChangeCallbackReceiverAttribute ( string  resourcesFolder)
inline

Member Data Documentation

◆ folder

readonly string JUtils.ResourcePlayModeChangeCallbackReceiverAttribute.folder

The documentation for this class was generated from the following file: