Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetAutomaticFormat(string)

Returns the TextureImporterFormat that would be automatically chosen for this platform.
Read time 1 minuteLast updated 8 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public TextureImporterFormat GetAutomaticFormat(string platform)

Parameters

platform

Accepts the following platform strings;
Standalone
,
Web
,
iPhone
,
Android
,
Windows Store Apps
, and
tvOS
.

Returns

Type

Description

TextureImporterFormatFormat chosen by the system for the provided platform, TextureImporterFormat.Automatic if the platform does not exist.