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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023