일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- boost
- DROP
- awk
- C++
- sqlite
- FIND
- autovacuum
- ubuntu
- Unity
- mysql
- python
- ngui
- SSH
- dataframe
- 배열
- pi
- conda
- null
- with
- 쉘
- sql
- c++11
- SVN
- postgresql
- List
- Shader
- pandas
- if
- Eclipse
- expect
Archives
- Today
- Total
その先にあるもの…
Build error: The type or namespace name 'UnityEditor' could not be found. 본문
프로그래밍/Unity
Build error: The type or namespace name 'UnityEditor' could not be found.
specialJ 2015. 3. 26. 16:50The UnityEditor
namespace is not available in builds.
The easy solution is to put the script in a folder named Editor
. Anything inside of folders named Editor
is not included in builds. Since the entire script can be excluded you should do this.
Side note: When you want to exclude only part of a script you can enclose it in compiler flags.
- // Runtime code here
- #if UNITY_EDITOR
- // Editor specific code here
- #endif
- // Runtime code here
-
Side note 2: Your ClearPlayerPrefs
class should inherit from ScriptableObject
since it shouldn't be attached to objects.
http://answers.unity3d.com/questions/576746/build-error-the-type-or-namespace-name-unityeditor.html
'프로그래밍 > Unity' 카테고리의 다른 글
ShaderLab: SubShader Tags { Queue } (0) | 2015.04.01 |
---|---|
NGUI에 Fx 렌더링 (0) | 2015.04.01 |
AnimatorStateInfo (0) | 2015.03.12 |
WorldToScreenPoint WorldToViewportPoint (0) | 2015.03.04 |
StartCoroutine (0) | 2015.03.03 |
Comments