Class ARObjectImporter
Importer for .arobject
files. See
Scanning and Detecting 3D Objects
for instructions on how to generate these files.
Inherited Members
AssetImporter.AddRemap(AssetImporter.SourceAssetIdentifier, Object)
AssetImporter.RemoveRemap(AssetImporter.SourceAssetIdentifier)
AssetImporter.assetTimeStamp
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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
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 |