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
    UnityEngine.Object
    UnityEditor.AssetImporter
    UnityEditor.AssetImporters.ScriptedImporter
    ARObjectImporter
    Inherited Members
    UnityEditor.AssetImporters.ScriptedImporter.SupportsRemappedAssetType(System.Type)
    UnityEditor.AssetImporter.SetAssetBundleNameAndVariant(System.String, System.String)
    UnityEditor.AssetImporter.GetAtPath(System.String)
    UnityEditor.AssetImporter.SaveAndReimport()
    UnityEditor.AssetImporter.AddRemap(UnityEditor.AssetImporter.SourceAssetIdentifier, UnityEngine.Object)
    UnityEditor.AssetImporter.RemoveRemap(UnityEditor.AssetImporter.SourceAssetIdentifier)
    UnityEditor.AssetImporter.GetExternalObjectMap()
    UnityEditor.AssetImporter.assetPath
    UnityEditor.AssetImporter.importSettingsMissing
    UnityEditor.AssetImporter.assetTimeStamp
    UnityEditor.AssetImporter.userData
    UnityEditor.AssetImporter.assetBundleName
    UnityEditor.AssetImporter.assetBundleVariant
    UnityEngine.Object.GetInstanceID()
    UnityEngine.Object.GetHashCode()
    UnityEngine.Object.Equals(System.Object)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate(UnityEngine.Object)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
    UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
    UnityEngine.Object.Instantiate<T>(T)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
    UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
    UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
    UnityEngine.Object.Destroy(UnityEngine.Object)
    UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
    UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
    UnityEngine.Object.FindObjectsOfType(System.Type)
    UnityEngine.Object.FindObjectsOfType(System.Type, System.Boolean)
    UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
    UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
    UnityEngine.Object.DestroyObject(UnityEngine.Object)
    UnityEngine.Object.FindSceneObjectsOfType(System.Type)
    UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
    UnityEngine.Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
    UnityEngine.Object.FindObjectOfType(System.Type)
    UnityEngine.Object.FindObjectOfType(System.Type, System.Boolean)
    UnityEngine.Object.ToString()
    UnityEngine.Object.name
    UnityEngine.Object.hideFlags
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.XR.ARKit
    Syntax
    [ScriptedImporter(1, "arobject")]
    public class ARObjectImporter : ScriptedImporter

    Methods

    OnImportAsset(AssetImportContext)

    Invoked automatically when an .arobject file is imported.

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

    The context associated with the asset import.

    Overrides
    UnityEditor.AssetImporters.ScriptedImporter.OnImportAsset(UnityEditor.AssetImporters.AssetImportContext)

    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 an .arobject archive.

    Returns
    Type Description
    Nullable<ARObject>

    If successful, an 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 an .arobject archive.

    Returns
    Type Description
    Nullable<ARObjectInfo>

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

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if path is null or the empty string.

    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