# IssuePluginEventAndDataWithFlags(IntPtr, int, CustomMarkerCallbackFlags, IntPtr)

> Send a user-defined event to a native code plugin with custom data and callback flags.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.0/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void IssuePluginEventAndDataWithFlags(IntPtr callback, int eventID, CustomMarkerCallbackFlags flags, IntPtr data)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): Native code callback to queue for Unity's renderer to invoke.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Built in or user defined id to send to the callback.**** (\[CustomMarkerCallbackFlags]\(/engine/6000.0/script-reference/unityengine/rendering/custommarkercallbackflags)): See [CustomMarkerCallbackFlags](/engine/6000.0/script-reference/unityengine/rendering/custommarkercallbackflags.md) for more details.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): Custom data to pass to the native plugin callback.
