Version: 2021.3
言語: 日本語

TextureImporter.GetSourceTextureWidthAndHeight

マニュアルに切り替える
public void GetSourceTextureWidthAndHeight (out int width, out int height);

パラメーター

width The source texture's width.
height The source texture's height.

説明

Gets the source texture's width and height.

Texture importer settings can affect the width and height of the imported texture. This method provides the source image's dimensions. This method throws an exception if the texture has not finished importing. For example, it would throw an exception if you called this method in an AssetPostprocessor.OnPreprocessAsset callback.