Class ARObjectImporter
Importer for .arobject files. See
Scanning and Detecting 3D Objects
for instructions on how to generate these files.
Inherited Members
AssetImporter.SaveAndReimport()
AssetImporter.AddRemap(AssetImporter.SourceAssetIdentifier, Object)
AssetImporter.RemoveRemap(AssetImporter.SourceAssetIdentifier)
AssetImporter.GetExternalObjectMap()
AssetImporter.assetPath
AssetImporter.importSettingsMissing
AssetImporter.assetTimeStamp
AssetImporter.userData
AssetImporter.assetBundleName
AssetImporter.assetBundleVariant
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: UnityEditor.XR.ARKit
Assembly: Unity.XR.ARKit.Editor.dll
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 |
|---|---|---|
| AssetImportContext | ctx | The context associated with the asset import. |
Overrides
UnityEditor.AssetImporters.ScriptedImporter.OnImportAsset(UnityEditor.AssetImporters.AssetImportContext)
See Also
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 |
|---|---|
| ARObject? | If successful, an ARObject describing the archive. Otherwise, |
See Also
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 |
|---|---|
| ARObjectInfo? | If successful, an ARObjectInfo containing metadata describing the archive. Otherwise, |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |