[경고&에러 대응] 'UnityEditor.TextureImporterFormat.AutomaticTruecolor' is obsolete. by pbkim

    #if UNITY_5_5_OR_NEWER

    protected TextureImporterCompression[] textureFormatVal = { TextureImporterCompression.Compressed, TextureImporterCompression.Uncompressed, TextureImporterCompression.Uncompressed };

    #else

    protected TextureImporterFormat[] textureFormatVal = {TextureImporterFormat.AutomaticCompressed, TextureImporterFormat.Automatic16bit, TextureImporterFormat.AutomaticTruecolor};

    #endif



1.Open up the ColorCorrectionLookupEditor.cs script from Assets/Editor/ImageEffects.

On line line 54, replace

if (textureImporter.textureFormat != TextureImporterFormat.AutomaticTruecolor)

with

if (textureImporter.textureCompression != TextureImporterCompression.Uncompressed) 

2.On line line 62, replace

textureImporter.textureFormat = TextureImporterFormat.AutomaticTruecolor;

with

textureImporter.textureCompression = TextureImporterCompression.Uncompressed;

3.Open MotionBlur.cs script from Assets/Standard Assets/Effects/ImageEffects/Scripts.

SystemInfo.supportsRenderTextures is deprecated.

Delete from line 24 to 28 which is the code below:

if (!SystemInfo.supportsRenderTextures){    enabled = false;    return;}

4.Open PostEffectsBase.cs script from Assets/Standard Assets/Effects/ImageEffects/Scripts

On line 115, replace

if (!SystemInfo.supportsImageEffects || !SystemInfo.supportsRenderTextures)

with

if (!SystemInfo.supportsImageEffects)


구글 468*60


Linked in

linknow profile