Semi-working fade into warehouse by trigger press

This commit is contained in:
2016-05-19 00:35:30 +02:00
parent ce46120e5a
commit cdf40b852e
12 changed files with 140 additions and 39 deletions
+6 -1
View File
@@ -14,7 +14,7 @@ public class SteamVR_Editor : Editor
int bannerHeight = 150;
Texture logo;
SerializedProperty script, wireframe;
SerializedProperty script, wireframe, RightEyeRenderTexture, LeftEyeRenderTexture;
string GetResourcePath()
{
@@ -36,6 +36,9 @@ public class SteamVR_Editor : Editor
wireframe = serializedObject.FindProperty("wireframe");
RightEyeRenderTexture = serializedObject.FindProperty("RightEyeRenderTexture");
LeftEyeRenderTexture = serializedObject.FindProperty("LeftEyeRenderTexture");
foreach (SteamVR_Camera target in targets)
target.ForceLast();
}
@@ -105,6 +108,8 @@ public class SteamVR_Editor : Editor
EditorGUILayout.PropertyField(script);
EditorGUILayout.PropertyField(wireframe);
EditorGUILayout.PropertyField(LeftEyeRenderTexture);
EditorGUILayout.PropertyField(RightEyeRenderTexture);
serializedObject.ApplyModifiedProperties();
}