Skip to content
Snippets Groups Projects
Commit 23b9cd87 authored by Samuel Truman's avatar Samuel Truman
Browse files

Added Unity bridge executor which simulates calls from the VIA-VR editor

parents d5b526b8 d45306bc
No related branches found
No related tags found
No related merge requests found
Showing with 20 additions and 32 deletions
using UnityEditor;
namespace de.jmu.ge.viavr.UnityBridge.Utils {
/// <summary>
/// This allows you to simulate a call from the VIA-VR editor to the
/// Unity Bridge from the Unity editor menu.
/// </summary>
public static class UnityBridgeExecutor {
[MenuItem("Tools/VIA-VR Unity Bridge/Simulate Unity Bridge Calls")]
private static void Execute() {
Core.UnityBridge.ExecuteAll();
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 092e2a421b3c4b368bac93ff9b7bb902
timeCreated: 1645466753
\ No newline at end of file
......@@ -8,12 +8,11 @@ Example Package/
├───Package
│ ├───Editor // Contains both the regular Unity package editor scripts and the ExamplePackageConfigurator, which adds the required GameObject to all scenes.
│ └───Runtime // The regular Unity package runtime scripts.
├───Scenes // Exmpty example scenes to be manipulated by the package.
└───Utils // Provides functionality to simulate a call from the VIA-VR editor. Can be ignored.
└───Scenes // Exmpty example scenes to be manipulated by the package.
```
See [Unity Bridge Readme](https://gitlab2.informatik.uni-wuerzburg.de/GE/Dev/ViaVR/components/via-vr-unity-bridge/-/blob/main/README.md) for more information.
## How to Run
Select `Unity Bridge Sample/Execute` in the Unity menu. This will simulate a call from the VIA-VR editor. The `OnConfigureScene` method will add a new GameObject to both sample scenes.
\ No newline at end of file
Select `Tools/VIA-VR Unity Bridge/Simulate Unity Bridge Calls` from the Unity menu. This will simulate a call from the VIA-VR editor. The `OnConfigureScene` method will add a new GameObject to both sample scenes.
\ No newline at end of file
fileFormatVersion: 2
guid: 11da0577a3884c80888e75d01e762980
timeCreated: 1645455596
\ No newline at end of file
using de.jmu.ge.viavr.UnityBridge.Core;
using UnityEditor;
/// <summary>
/// This allows you to simulate a call from the VIA-VR editor to the
/// Unity Bridge from the Unity editor menu.
/// </summary>
public static class UnityBridgeExecutor {
[MenuItem("Unity Bridge Sample/Execute")]
private static void Execute() {
UnityBridge.ExecuteAll();
}
}
fileFormatVersion: 2
guid: 73529b5b03fd46dd955ebe9ce81a3106
timeCreated: 1645455607
\ No newline at end of file
{
"reference": "GUID:91f6f713fa239f546949e9b17548b1b5"
}
\ No newline at end of file
fileFormatVersion: 2
guid: eefa8c98ac614ea459e484e888b160b8
AssemblyDefinitionReferenceImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment