Commit 34094e5a authored by Reto Spoerri - WorkPC's avatar Reto Spoerri - WorkPC
Browse files

initial version

parents
[Ll]ibrary/
[Tt]emp/
[Oo]bj/
[Bb]uild/
[Bb]uilds/
Assets/AssetStoreTools*
# Visual Studio cache directory
.vs/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.opendb
.plastic/
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
# Unity3D Generated File On Crash Reports
sysinfo.txt
# Builds
*.apk
*.unitypackage
NetXr-UnityProject/Assets/SteamVR/
NetXr-UnityProject/Assets/CompassCamera/
NetXr-UnityProject/Assets/Editor/StaticPropertiesPropagator/
NetXr-UnityProject/Assets/StaticPropertiesPropagater/
NetXr-UnityProject/Assets/Packages/
NetXr-UnityProject/Assets/Plugins/LeapCSharp.NET3.5.dll.zip*
*.blend1
# Written by MakeHuman 1.1.1
version v1.1.1
tags human
camera 16.0 8.0 -1.0 1.0 1.0 0.675
modifier macrodetails-universal/Muscle 0.500000
modifier macrodetails/African 0.333333
modifier macrodetails-proportions/BodyProportions 0.500000
modifier macrodetails/Gender 1.000000
modifier macrodetails-height/Height 0.687000
modifier breast/BreastSize 0.500000
modifier macrodetails/Age 0.503000
modifier breast/BreastFirmness 0.500000
modifier macrodetails/Asian 0.333333
modifier macrodetails/Caucasian 0.333333
modifier macrodetails-universal/Weight 0.500000
proxy male1591 d7e4934e-daed-4ad5-a055-18c9cba487dc
skeleton game_engine.mhskel
pose standing02.bvh
clothes male_casualsuit01 79ced554-1d8a-4c14-a6a8-e1de90b09c32
clothesHideFaces True
skinMaterial skins/middleage_caucasian_female/middleage_caucasian_female.mhmat
subdivide False
{
"files.exclude":
{
"**/.DS_Store":true,
"**/.git":true,
"**/.gitignore":true,
"**/.gitmodules":true,
"**/*.booproj":true,
"**/*.pidb":true,
"**/*.suo":true,
"**/*.user":true,
"**/*.userprefs":true,
"**/*.unityproj":true,
"**/*.dll":true,
"**/*.exe":true,
"**/*.pdf":true,
"**/*.mid":true,
"**/*.midi":true,
"**/*.wav":true,
"**/*.gif":true,
"**/*.ico":true,
"**/*.jpg":true,
"**/*.jpeg":true,
"**/*.png":true,
"**/*.psd":true,
"**/*.tga":true,
"**/*.tif":true,
"**/*.tiff":true,
"**/*.3ds":true,
"**/*.3DS":true,
"**/*.fbx":true,
"**/*.FBX":true,
"**/*.lxo":true,
"**/*.LXO":true,
"**/*.ma":true,
"**/*.MA":true,
"**/*.obj":true,
"**/*.OBJ":true,
"**/*.asset":true,
"**/*.cubemap":true,
"**/*.flare":true,
"**/*.mat":true,
"**/*.meta":true,
"**/*.prefab":true,
"**/*.unity":true,
"build/":true,
"Build/":true,
"Library/":true,
"library/":true,
"obj/":true,
"Obj/":true,
"ProjectSettings/":true,
"temp/":true,
"Temp/":true
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 485fefa24a46147b4ac9a471b754423d
folderAsset: yes
timeCreated: 1519677137
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: a10be704f4c89d04f88ca840e27497b8
folderAsset: yes
timeCreated: 1512145620
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 61e96481ff67e4605ae0718ed3a55a3b
folderAsset: yes
timeCreated: 1512457405
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
//============= Copyright (c) Reto Spoerri, All rights reserved. ==============
//
// Purpose:
//
//=============================================================================
namespace NetXr {
using System;
using System.Reflection;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
using UnityEditorInternal;
public class NetXrSettings : EditorWindow {
bool leapAvailable;
bool steamVrAvailable;
[MenuItem ("Window/NetXrSettings")]
public static void ShowWindow () {
EditorWindow.GetWindow (typeof (NetXrSettings));
}
public void OnGUI () {
if (GUILayout.Button ("Read Values from System")) {
ReadFromSystem ();
}
leapAvailable = EditorGUILayout.Toggle ("Leap Lib Available", leapAvailable);
steamVrAvailable = EditorGUILayout.Toggle ("SteamVR Lib Available", steamVrAvailable);
if (GUILayout.Button ("Update Precompile Symbols")) {
UpdatePrecompileSymbols ();
}
}
private void ReadFromSystem () {
leapAvailable = NamespaceExists ("Leap");
#if UNITY_2017_1_OR_NEWER
steamVrAvailable = true;
#else
steamVrAvailable = ClassExists ("SteamVR_Controller");
#endif
}
private void UpdatePrecompileSymbols () {
DefinePrecompileSymbol ("NETXR_LEAP_ACTIVE", leapAvailable);
DefinePrecompileSymbol ("NETXR_STEAMVR_ACTIVE", steamVrAvailable);
}
// method3
private bool ClassExists (string className) {
Type t = System.Reflection.Assembly.GetExecutingAssembly ().GetType (className, false);
return (t != null);
}
private bool NamespaceExists (string desiredNamespace) {
foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies ()) {
foreach (Type type in assembly.GetTypes ()) {
if (type.Namespace == desiredNamespace)
return true;
}
}
return false;
}
private void DefinePrecompileSymbol (string newSymbol, bool newState) {
//bool currentActive = PlayerSettings.GetScriptingDefineSymbolsForGroup(BuildTargetGroup.Standalone).Contains(newSymbol);
List<String> allCurrentSymbols = PlayerSettings.GetScriptingDefineSymbolsForGroup (BuildTargetGroup.Standalone).Split (';').ToList ();
if (allCurrentSymbols.Contains (newSymbol) != newState) {
if (newState) {
allCurrentSymbols.Add (newSymbol);
// add the symbol
string newSymbols = string.Join (";", allCurrentSymbols.ToArray ());
Debug.LogWarning ("WorldspaceInputModuleInspector.DefineCompileSymbol: adding " + newSymbol + " to compile preprocessors -> " + newSymbols);
PlayerSettings.SetScriptingDefineSymbolsForGroup (BuildTargetGroup.Standalone, newSymbols);
} else {
allCurrentSymbols.Remove (newSymbol);
// remove the symbol
string newSymbols = string.Join (";", allCurrentSymbols.ToArray ());
Debug.LogWarning ("WorldspaceInputModuleInspector.DefineCompileSymbol: removing " + newSymbol + " from compile preprocessors -> " + newSymbols);
PlayerSettings.SetScriptingDefineSymbolsForGroup (BuildTargetGroup.Standalone, newSymbols);
}
}
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: e1d2227eedaf64097b95898381a8e78c
timeCreated: 1512457363
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 2b6b2bbb434fb55499b28a2b6d5b33b6
folderAsset: yes
timeCreated: 1520938803
licenseType: Pro
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: fd2d88cbca887b942b6b02692ccc62c5
folderAsset: yes
timeCreated: 1512147999
licenseType: Free
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment