public override void OnInspectorGUI() { var entry = target as ARKitReferenceObjectEntry; if (m_ShouldReadARObject) { var path = AssetDatabase.GetAssetPath(entry); m_ARObject = ARObjectImporter.ReadARObject(path); m_ShouldReadARObject = false; } if (m_ARObject.HasValue) { var info = m_ARObject.Value.info; EditorGUILayout.LabelField(Content.info); using (new EditorGUI.DisabledScope(true)) { EditorGUILayout.IntField(Content.infoVersion, info.version); EditorGUILayout.LabelField(Content.referenceOrigin); using (new EditorGUI.IndentLevelScope()) { EditorGUILayout.Vector3Field(Content.infoPosition, info.referenceOrigin.position); EditorGUILayout.Vector3Field(Content.infoRotation, info.referenceOrigin.rotation.eulerAngles); } TextureField(m_ARObject.Value.preview); } } else { EditorGUILayout.LabelField("Could not read object info."); } }