Skip to content

Commit e699178

Browse files
committed
Added show placement marker component to quick setup.
1 parent 84d32a7 commit e699178

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Scripts/CustomEditor/QuickSetupPlaneDetection.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ private static void SetupARFoundationComponentsPlaneDetection()
6767

6868
EditorApplication.update += AddPlaneEvent;
6969

70+
var showPlacementMarkerOnPlane = sessionOrigin.AddComponent<ARShowPlacementMarkerOnPlane>();
71+
72+
showPlacementMarkerOnPlane.placementMarker =
73+
AssetDatabase.LoadAssetAtPath<GameObject>(AutoPopulateScene.cubePrefabPath);
74+
7075
}
7176

7277
private static void AddPlaneEvent()

0 commit comments

Comments
 (0)