# SimpleScriptEventData

Kind: Class · Namespace: Sansar.Script · Assembly: Sansar.Script.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Script">Namespace <a href="/scripting/api/sansar.script"><code>Sansar.Script</code></a></span>
<span>Inherits <a href="/scripting/api/sansar.script/reflective">Reflective</a></span>
</div>
<p class="api-flag api-stripped-only">This type is documented in the client, but it is not in the reference assemblies that scripts compile against. Scripts may not be able to use it.</p>

<span id="T:Sansar.Script.SimpleScriptEventData"></span>

Used by [`ScriptBase.PostSimpleScriptEvent`](/scripting/api/sansar.script/scriptbase#postsimplescriptevent-string-object) to send simple script events.

```csharp
public class SimpleScriptEventData : Reflective
```

## Remarks

Supports sending a single Sansar or System type object between scripts, without the overhead of creating a custom Reflective class and Interface pair. Used by PostSimpleScriptEvent and SimpleScript.OnScriptEvent.

## Members at a glance

| Kind | Members |
|---|---|
| **Constructors** | [SimpleScriptEventData](#simplescripteventdata) |
| **Properties** | [Data](#data) |

## Constructors

### SimpleScriptEventData

<div class="api-card">
<span id="M:Sansar.Script.SimpleScriptEventData.#ctor"></span>
<span id="C:Sansar.Script.SimpleScriptEventData()"></span>

```csharp signature
public SimpleScriptEventData()
```

Default constructor.

</div>


## Properties

### Data

<div class="api-card">
<span id="P:Sansar.Script.SimpleScriptEventData.Data"></span>

```csharp signature
public object Data { get; set; }
```

A single object to pass between scripts.

<details class="api-remarks"><summary>Remarks</summary>

To be useful, Data must be a system or Sansar type and not a locally defined type. Locally defined types will not be usable by other scripts.

</details>

</div>




<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>