Hello all,
I want to build my game, to start profiling as a standalone game, but I am getting this error:
![]()
I found here an Q&A, that I need to move all scripts, which are using UnityEditor to the Editor folder. So I did.

But there is a problem with one particular script, where I have a lot on helper methods, therefore I will not paste here the whole script. The Script is static:
using Object = UnityEngine.Object;
using System.Collections;
using UnityEditor;
using UnityEngine;
using System.IO;
using System;
public static class HelperUtility
{
public static void Meethod 1() {}
public static void Meethod 2() {}
public static void Meethod 3() {}
}
After I have moved this script to the Editor folder, I immediately got errors even before starting the game. For example:
- Assets\Scripts\Player\PickupManager.cs(156,36): error CS0103: The name ‘HelperUtility’ does not exist in the current context
- Assets\Scripts\ProcAnim\ProceduralAnimations.cs(113,42): error CS1061: ‘Transform’ does not contain a definition for ‘HelperUtility’ and no accessible extension method ‘HelperUtility’ accepting a first argument of type ‘Transform’ could be found (are you missing a using directive or an assembly reference?)
Assets\Scripts\Quests\Quest2.cs(58,28): error CS0103: The name ‘HelperUtility’ does not exist in the current context
I don’t understand, why moving this script causes these errors? I guess there is something I don’t understand? How can use the script from the Editor folder?
Thank you
Huxi
Aaah... new info. So I guess I have to adjust my script to do what I want to do, but without the editor namespace. Thank you :)
– Huxii@Huxii no problem , also added some extra info in the answer
– PixelEyesDev