Class ARObjectImporter
Importer for .arobject
files. See
Scanning and Detecting 3D Objects
for instructions on how to generate these files.
Inherited Members
UnityEditor.AssetImporter.AddRemap(UnityEditor.AssetImporter.SourceAssetIdentifier, UnityEngine.Object)
UnityEditor.AssetImporter.RemoveRemap(UnityEditor.AssetImporter.SourceAssetIdentifier)
UnityEditor.AssetImporter.assetTimeStamp
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
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 |
---|---|---|
AssetImportContext | ctx | The context associated with the asset import. |
Overrides
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 |