I created a C# plugin that uses event listeners and delegate, and now I have a Unity C# script which contains one event listener that I am trying to attach on to the main camera.
What I am trying to do is to get the camera frame data from a webcam, and using the event listener, set the main camera's texture accordingly to verify whether it is working properly or not.
When I drag the script to the main camera, it gives the error "Can't add script behaviour CallbackExecutor. The script needs to derive from MonoBehaviour!"
I already haveClass: Monobehaviour
, so does that mean EventCallBacks cannot be used with Monobehaviour? If so, how should I go about this problem?