Skip to content

Commit

Permalink
Merge pull request #1 from BeamXR-io/develop
Browse files Browse the repository at this point in the history
Initial release
  • Loading branch information
rorygames authored Dec 20, 2024
2 parents bb8f139 + 3c44dc6 commit c35c977
Show file tree
Hide file tree
Showing 208 changed files with 33,381 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions Editor/BeamXR.Director.Editor.asmdef
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "BeamXR.Director.Editor",
"rootNamespace": "",
"references": [
"GUID:3c5927d4c695b684b9bccbf0bdf5712d",
"GUID:1fa272d591462e6458d1bfcc17595ab8",
"GUID:a5fb8e2034cbd9242aecd01d82fe04e6"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
7 changes: 7 additions & 0 deletions Editor/BeamXR.Director.Editor.asmdef.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Editor/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Editor/Scripts/DirectorPrefabMenu.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using BeamXR.Director.Camera;
using BeamXR.Streaming.Editor;

namespace BeamXR.Director.Editor
{
public class DirectorPrefabMenu : MonoBehaviour
{
[MenuItem("BeamXR/Prefabs/Director/Add Control Panel", priority = 2)]
private static void AddControlPanel()
{
PrefabAddStreamingPrefab.SpawnPrefab("BeamXR Control Panel", FindFirstObjectByType<ControlPanel.BeamControlPanel>(FindObjectsInactive.Include), PrefabAddStreamingPrefab.GetParentObject().transform);
}

[MenuItem("BeamXR/Prefabs/Director/Add Hand Menu", priority = 3)]
private static void AddHandMenu()
{
PrefabAddStreamingPrefab.SpawnPrefab("BeamXR Hand Menu", GameObject.Find("BeamXR Hand Menu"), PrefabAddStreamingPrefab.GetParentObject().transform);
}

[MenuItem("BeamXR/Prefabs/Director/Add Camera Model", priority = 4)]
private static void AddCameraModel()
{
PrefabAddStreamingPrefab.SpawnPrefab("BeamXR Camera Model", FindFirstObjectByType<CameraModelController>(FindObjectsInactive.Include), PrefabAddStreamingPrefab.GetParentObject().transform);
}
}
}
11 changes: 11 additions & 0 deletions Editor/Scripts/DirectorPrefabMenu.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c35c977

Please sign in to comment.