Struct ImageResult
Imported glTF image containing a Texture2D and metadata.
Inherited Members
Namespace: GLTFast
Assembly: glTFast.dll
Syntax
public struct ImageResult
Constructors
ImageResult(Texture2D, bool)
Default Image constructor.
Declaration
public ImageResult(Texture2D texture, bool isYFlipped = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2D | texture | Imported texture. |
| bool | isYFlipped | Must be true if texture is flipped vertically. |
Properties
IsYFlipped
If true, the image is flipped vertically.
Declaration
public readonly bool IsYFlipped { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Null
Empty image. Indicates a failed load.
Declaration
public static ImageResult Null { get; }
Property Value
| Type | Description |
|---|---|
| ImageResult |
Texture
Imported texture.
Declaration
public readonly Texture2D Texture { get; }
Property Value
| Type | Description |
|---|---|
| Texture2D |