docs.unity3d.com
    Show / Hide Table of Contents

    Class ARObjectImporter

    Importer for .arobject files. See Scanning and Detecting 3D Objects for instructions on how to generate these files.

    Inheritance
    Object
    ARObjectImporter
    Namespace: UnityEditor.XR.ARKit
    Syntax
    public class ARObjectImporter : ScriptedImporter

    Methods

    OnImportAsset(AssetImportContext)

    Invoked automatically when a .arobject file is imported.

    Declaration
    public override void OnImportAsset(AssetImportContext ctx)
    Parameters
    Type Name Description
    AssetImportContext ctx

    The context associated with the asset import.

    ReadARObject(String)

    Attempts to read the contents of the .arobject archive.

    Declaration
    public static ARObject? ReadARObject(string path)
    Parameters
    Type Name Description
    String path

    The path to a .arobject archive.

    Returns
    Type Description
    Nullable<ARObject>

    If successful, a ARObject describing the archive. Otherwise, null.

    ReadInfo(String)

    Attempts to read metadata from the .arobject archive.

    Declaration
    public static ARObjectInfo? ReadInfo(string path)
    Parameters
    Type Name Description
    String path

    The path to a .arobject archive.

    Returns
    Type Description
    Nullable<ARObjectInfo>

    If successful, a ARObjectInfo containing metadata describing the archive. Otherwise, null.

    See Also

    ARKitReferenceObjectEntry
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 12 February 2021