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