Class ARObjectImporter
Importer for .arobject
files. See
Scanning and Detecting 3D Objects
for instructions on how to generate these files.
Inheritance
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
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 |
Returns
Type | Description |
---|---|
Nullable<ARObject> | If successful, an ARObject describing the archive. Otherwise, |
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 |
Returns
Type | Description |
---|---|
Nullable<ARObjectInfo> | If successful, an ARObjectInfo containing metadata describing the archive. Otherwise, |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |