AssetImportMessage

A message generated by the asset import process.

JSON representation
{
  "code": enum(Code),
  "objParseError": {
    object(ObjParseError)
  },
  "imageError": {
    object(ImageError)
  },
  "filePath": string
}
Fields
code

enum(Code)

The code associated with this message.

objParseError

object(ObjParseError)

An optional OBJ parse error. Only present for OBJ_PARSE_ERROR.

imageError

object(ImageError)

An optional image error. Only present for INVALID_IMAGE_FILE.

filePath

string

An optional file path. Only present for those error codes that specify it.

ObjParseError

Details of an error resulting from parsing an OBJ file

JSON representation
{
  "code": enum(Code),
  "filePath": string,
  "lineNumber": number,
  "startIndex": number,
  "endIndex": number,
  "line": string
}
Fields
code

enum(Code)

The type of problem found (required).

filePath

string

The file path in which the problem was found.

lineNumber

number

Line number at which the problem was found.

startIndex

number

The starting character index at which the problem was found.

endIndex

number

The ending character index at which the problem was found.

line

string

The text of the line. Note that this may be truncated if the line was very long. This may not include the error if it occurs after line truncation.

ImageError

A message resulting from reading an image file.

JSON representation
{
  "filePath": string,
  "code": enum(Code)
}
Fields
filePath

string

The file path in the import of the image that was rejected.

code

enum(Code)

The type of image error encountered. Optional for older image errors.