Safeguard
Security Guides•

Which Unity code ships in your game and which only runs in the editor?

Editor folder scripts are not in Player builds. Plugins and Resources are. How to sort a downloaded asset's code into editor-time and runtime risk.

Safeguard Security Team
4 min read

Scripts in a folder named Editor add authoring features to the Unity Editor and are not available in Player builds at runtime, according to Unity's documentation. Code elsewhere, including the Plugins folder, can ship. Sorting a new asset's code into these two buckets tells you where to look for risk.

Why the split matters

Two different questions come up when you add an asset:

  • What can this code do on my developers' machines while we work?
  • What does this code do inside the game my players run?

Editor code answers the first. Runtime code answers the second. They need different reviews, and mixing them up either wastes time or misses a real exposure.

What Unity says about the special folders

Unity reserves some folder names under Assets. The manual's table says:

FolderPurpose per UnityShips in the Player build?
EditorEditor scripts that add functionality at authoring timeNot available at runtime in Player builds
Editor Default ResourcesAssets Editor scripts load on demandEditor use
GizmosImages for drawing icons in the Scene viewEditor use
ResourcesAssets loaded on demand from a script at runtimeYes; the manual notes they increase build size
PluginsThird-party pluginsPlatform specific handling applies
StreamingAssetsFiles available in original format at runtimeYes

The manual also notes an alternative to an Editor folder: create an assembly definition asset for Editor code. So a script outside an Editor folder can still be editor-only if an assembly definition says so. Folder names alone are not the whole answer.

How to sort an asset in ten minutes

  1. Unzip or import the asset into a scratch project, not your main one.
  2. List every folder named Editor, and every assembly definition file. Open each assembly definition and note whether it is limited to the Editor platform.
  3. Everything left over is probably runtime code. List the folders.
  4. List anything in Plugins. Native libraries and precompiled managed assemblies there are binary and cannot be read like source. See the native plugin inventory guide.
  5. Check Resources and StreamingAssets for files that scripts load by name. Data that your code interprets deserves a glance.
  6. Write two short notes: "runs on developer machines" and "ships to players", each with the findings.

What to look for in each bucket

Editor bucket. Code that runs when the editor loads or when a menu item is used can do what any program you run can do. Look for network calls, file writes outside the project, process launching and anything that downloads more code. Our post on opening a downloaded Unity project goes deeper.

Runtime bucket. Look at permissions it needs on mobile, network endpoints it contacts, data it collects, and its libraries. This is what your privacy statements and store forms must reflect.

A common mistake

Teams often review only the scripts they can read, and skip the binaries. A precompiled plugin in the Plugins folder is the code you cannot inspect by eye, so it needs provenance checks instead: who published it, which version, what hash.

Safeguard's SBOM and dependency scanning covers declared packages and libraries in your repository, and you can try a free scan at gold.safeguard.sh/scan. Reading an asset's folders as above is a manual step that complements it.

Quick check

Is code in an Editor folder part of my shipped game?

Unity's manual says Editor scripts are not available in Player builds at runtime. They can still run on developer machines.

Can editor-only code live outside an Editor folder?

Yes. Unity describes assembly definition assets as an alternative way to mark Editor code.

Where do native libraries go?

The manual reserves the Plugins folder for third-party plugins, and platform specific rules apply to its contents.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.