- Home /
why does using UnityEditor exist?
if I understand correctly from all Q/A I read
I just can't use using UnityEditor to build the game
so why does it exist if we cannot use it?
like the bulldog that wants to eat food through glass
Answer by Dave-Carlile · Feb 09, 2013 at 03:52 PM
The UnityEditor
namespace is for creating customized editing tools within the Unity editor. Most of the game play functionality is in the UnityEngine
namespace.
dang how do I do this in game play than
TextureImporter tImporter = AssetImporter.GetAtPath(texture) as TextureImporter;
if(tImporter == null) {Debug.Log("ERROR $$anonymous$$ain$$anonymous$$enu OptionsVideoTextureResolution texture not found: " + texture);}
if(tImporter != null) {
tImporter.mipmapEnabled = true;
tImporter.isReadable = true;
tImporter.maxTextureSize = res;
AssetDatabase.ImportAsset(texture, ImportAssetOptions.ForceUpdate );
I don't want to make 10 textures for each texture I wanted to make player to choose texture $$anonymous$$ax Size from 2pixles to 1024
yeah why 2 because if he really has BAD PC he can still play it
During game play, you would GetPixels and do the image processing yourself
Also if your target machine has those limits, set that in the Inspector. Though I would have thought that Unity would detect hardware limits and choose the appropriate mipmap...
Your answer
![](https://koobas.hobune.stream/wayback/20220613092421im_/https://answers.unity.com/themes/thub/images/avi.jpg)