Class TextureImporterInternals
Extension methods for the UnityEditor.TextureImporter.
Namespace: UnityEditor.XR.ARSubsystems.InternalBridge
Syntax
public static class TextureImporterInternals
Methods
GetSourceTextureDimensions(TextureImporter)
Gets the original image dimensions. The texture import settings can affect the resulting texture size, for instance: rounding to a power of 2.
Declaration
public static Vector2Int GetSourceTextureDimensions(TextureImporter textureImporter)
Parameters
| Type | Name | Description |
|---|---|---|
| TextureImporter | textureImporter | The |
Returns
| Type | Description |
|---|---|
| Vector2Int | The original dimensions of the imported image. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |