> For the complete documentation index, see [llms.txt](https://docs.overthereality.ai/over-sdk-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overthereality.ai/over-sdk-manual/sdk-coding-nodes/banned-nodes.md).

# Banned Nodes

The OVER App does not run every Unity Visual Scripting node. Some nodes are blocked for **safety** (they could break the app or other experiences) and some because they **do not exist at runtime** (they work only in the Unity Editor).

This page explains how the filter works and lists the nodes that are blocked.

## How the filter works

The OVER App uses an **allow list**: a node works only if the app allows it.

A node that reads or changes something (a method, a property, a field) is allowed when:

1. its class comes from a **supported library**, see [Configuration](https://docs.overthereality.ai/over-sdk-manual/sdk-coding-nodes/configuration.md);
2. its class is a Unity object (GameObject, components, materials...), an enum, or one of the extra types supported by the app (Newtonsoft.Json, NavMesh, Splines...);
3. it is **not** in the block list below.

These nodes are always allowed:

* **Events** (On Start, On Update, the OVER events...).
* **Variables** nodes.
* **Flow** nodes, such as If, For Each, While, Sequence.
* The **OVER nodes** ( [Over Nodes](https://docs.overthereality.ai/over-sdk-manual/sdk-coding-nodes/over-nodes.md) ).

## What happens if you use a banned node

When you publish from the **OVER Editor**, the SDK checks every Script Graph of the experience.

* **Banned node** : you get an error like `contains unsupported node: ...` and you cannot publish until you remove it.
* **Not fully supported node** : you get a warning, but you can publish.

{% hint style="info" %}
If a node is missing from the fuzzy finder, check its library in [Configuration](https://docs.overthereality.ai/over-sdk-manual/sdk-coding-nodes/configuration.md) before thinking it is banned.
{% endhint %}

## Blocked classes

All the nodes of these classes are blocked:

| Class                     | Why                                                                                       |
| ------------------------- | ----------------------------------------------------------------------------------------- |
| `Application`             | It can quit the app or change its settings. Only `Application.systemLanguage` is allowed. |
| `Resources`               | It loads any asset by name.                                                               |
| `SceneManager`            | It loads and unloads scenes.                                                              |
| `Scene`                   | It gives access to every object of the scene.                                             |
| `VideoShadersIncludeMode` | Rendering setting of the app.                                                             |

## Blocked nodes

**Search and messages**

They can find and change objects that do not belong to your experience.

* `GameObject.Find`, `FindWithTag`, `FindGameObjectWithTag`, `FindGameObjectsWithTag`
* `Object.FindObjectOfType`, `FindObjectsOfType`, `FindObjectsOfTypeAll`, `FindObjectsOfTypeIncludingAssets`, `FindSceneObjectsOfType`
* `GameObject.SendMessage`, `SendMessageUpwards`
* `Component.SendMessage`, `SendMessageUpwards`

Use **Variables** or references set in the Inspector instead of searching objects by name or tag.

**Object lifetime**

* `Object.DontDestroyOnLoad`
* `Object.DestroyImmediate` : use **Destroy** instead.

**Time**

They would change the time of the whole app.

* `Time.timeScale`, `fixedDeltaTime`, `maximumDeltaTime`, `maximumParticleDeltaTime`, `captureDeltaTime`, `captureFramerate`

**Camera**

The camera belongs to the OVER App.

* `Camera.main`, `Camera.allCameras`, `Camera.current`, `Camera.scene`

Use the **AR Camera** nodes ( [AR Camera](https://docs.overthereality.ai/over-sdk-manual/sdk-coding-nodes/over-nodes/ar-camera.md) ) instead.

**JSON security**

* `JsonSerializerSettings.TypeNameHandling`
* `JsonSerializerSettings.TypeNameAssemblyFormatHandling`

All the other Newtonsoft.Json nodes are allowed.

**Number and date conversion**

Only the simple versions with one string are allowed:

* **Allowed** : `Parse(string)` and `TryParse(string, out value)` of `int`, `float`, `double`, `bool`, `byte`, `short`, `long`, `uint`, `ushort`, `ulong`, `DateTime`.
* **Blocked** : the other versions of `Parse` and `TryParse`, `TryFormat`, `DateTime.ParseExact`, `DateTime.TryParseExact`.

**Editor-only nodes**

These members exist only in the Unity Editor, so they cannot run in the app:

* **MeshRenderer** : `stitchLightmapSeams`, `receiveGI`, `scaleInLightmap`
* **Light** : `lightmapBakeType`, `SetLightDirty`, `shadowRadius`, `areaSize`, `shadowAngle`
* **LightProbeGroup** : `probePositions`, `dering`
* **Texture** : `imageContentsHash`; **Texture2D** : `alphaIsTransparency`
* **LightingSettings** : the lightmapper settings
* **MonoBehaviour** : `runInEditMode`
* **AudioSource** : the gamepad speaker members (`PlayOnGamepad`, `DisableGamepadOutput`...)
* **UI** : `Graphic.OnRebuildRequested`, `Text.OnRebuildRequested`
* **ParticleSystem** : `ParticleSystemRenderer.supportsMeshInstancing`, `ParticleSystemForceField.FindAll`
* **GraphicsSettings** : `videoShadersIncludeMode`

## Nodes with a warning

| Node                      | Suggestion                |
| ------------------------- | ------------------------- |
| `AudioSource.PlayOneShot` | Use **AudioSource.Play**. |
| `AudioSource.PlayDelayed` | Use **AudioSource.Play**. |

## Instantiate and layers

If your graphs use the **Instantiate** node, the prefabs you create must be on layer **19: Over Layer**. If they are not, the OVER Editor shows an error and you cannot publish.

The objects of the scene must be on layer **0: Default** or **19: Over Layer**. Otherwise you get a warning.
