Unity Script Reference:
TextureImporterNPOTScale.ToNearest
Description

Scale to nearest power of two.

See Also: TextureImporter.npotScale.