Skip to content

Commit

Permalink
Tags and layers are always initialized when EVR starts up
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewTHEManeri committed Nov 22, 2017
1 parent 9343cd4 commit 388a759
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions Scripts/Core/EditorVR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,19 @@ static void HandleInitialization()
#if !ENABLE_OVR_INPUT && !ENABLE_STEAMVR_INPUT && !ENABLE_SIXENSE_INPUT
Debug.Log("<color=orange>EditorVR requires at least one partner (e.g. Oculus, Vive) SDK to be installed for input. You can download these from the Asset Store or from the partner's website</color>");
#endif
}
// Add EVR tags and layers if they don't exist
var tags = TagManager.GetRequiredTags();
var layers = TagManager.GetRequiredLayers();

// Add EVR tags and layers if they don't exist
var tags = TagManager.GetRequiredTags();
var layers = TagManager.GetRequiredLayers();

foreach (var tag in tags)
{
TagManager.AddTag(tag);
}
foreach (var tag in tags)
{
TagManager.AddTag(tag);
}

foreach (var layer in layers)
{
TagManager.AddLayer(layer);
}
foreach (var layer in layers)
{
TagManager.AddLayer(layer);
}
}

Expand Down

0 comments on commit 388a759

Please sign in to comment.