Question by
jordimas · May 06, 2020 at 12:06 AM ·
build-errorplayersettingsaspectratioreference assemblies
Error when trying to use classes "UnityEditor.PlayerSettings" and "UnityEditor.AspectRatio"
When I try to use classes "UnityEditor.PlayerSettings" and "UnityEditor.AspectRatio" and then I build, I got the following errors
error CS0234: The type or namespace name 'PlayerSettings' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?) error CS0234: The type or namespace name 'AspectRatio' does not exist in the namespace 'UnityEditor' (are you missing an assembly reference?)
Comment
Your answer
Follow this Question
Related Questions
Build EXE - Crashes 0 Answers
Problems compiling in Unity Cloud Build, but not locally 0 Answers
About generated dlls and Unity 1 Answer
CommandInvokationFailure: Failed to re-package resources. 0 Answers