/// <summary> /// Call when reset or starting scene /// </summary> private void CreateOriginMarkerAtCameraPosition() { if (originMarker != null) { Destroy(originMarker.transform.parent.gameObject); } originMarker = OriginMarker.CreatePrefab(firstPersonCamera.transform, originMarkerPrefab, anchorWrapperTransform); }
/// <summary> /// Call when reset or starting scene /// </summary> private void CreateOriginMarkerAtCameraPosition() { if (originMarker != null) { Destroy(originMarker.transform.parent.gameObject); } if (originMarkerPrefab == null) { Debug.LogError("originMarkerPrefab is null. Not calling OriginMarker.CreatePrefab"); return; } originMarker = OriginMarker.CreatePrefab(firstPersonCamera.transform, originMarkerPrefab, anchorWrapperTransform); }