-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7078d14
Showing
218 changed files
with
20,924 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# =============== # | ||
# Unity generated # | ||
# =============== # | ||
/[Ll]ibrary/ | ||
/[Tt]emp/ | ||
/[Oo]bj/ | ||
/[Uu]nity[Gg]enerated/ | ||
|
||
# ===================================== # | ||
# Visual Studio / MonoDevelop generated # | ||
# ===================================== # | ||
ExportedObj/ | ||
*.svd | ||
*.userprefs | ||
*.csproj | ||
*.pidb | ||
*.suo | ||
*.sln | ||
*.user | ||
*.unityproj | ||
*.booproj | ||
|
||
# ============ # | ||
# OS generated # | ||
# ============ # | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
Icon | ||
ehthumbs.db | ||
Thumbs.db | ||
Thumbs.db.meta | ||
|
||
# ===== # | ||
# Other # | ||
# ===== # | ||
*.unitypackage | ||
/[Bb]in/ | ||
/Assets/StreamingAssets/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
namespace Sigtrap.VrTunnellingPro.Editors { | ||
[CustomEditor(typeof(TunnellingMobile), true)] | ||
public class VrTunnellingMobileEditor : VrTunnellingProEditorBase { | ||
override protected string HEADER_LOGO_NAME {get {return "VrTunnellingProMobileLogo";}} | ||
SerializedProperty _pDrawSkybox; | ||
SerializedProperty _pUseMask, _pStencilRef, _pStencilMask, _pStencilBias; | ||
TunnellingMobile _tm; | ||
|
||
GUIContent _gcApplyColor = new GUIContent("Apply Color", "Apply Effect Color to Skybox"); | ||
|
||
protected override void CacheProperties(){ | ||
_pDrawSkybox = serializedObject.FindProperty("drawSkybox"); | ||
_pUseMask = serializedObject.FindProperty("useMask"); | ||
_pStencilRef = serializedObject.FindProperty("stencilReference"); | ||
_pStencilMask = serializedObject.FindProperty("stencilMask"); | ||
_pStencilBias = serializedObject.FindProperty("stencilBias"); | ||
_tm = (TunnellingMobile)target; | ||
} | ||
|
||
protected override void DrawSettings(){ | ||
EditorGUILayout.BeginVertical(EditorStyles.helpBox); | ||
EditorGUILayout.PropertyField(_pDrawSkybox); | ||
if (_tm.drawSkybox){ | ||
++EditorGUI.indentLevel; | ||
EditorGUILayout.PropertyField(_pApplyColorToBkg, _gcApplyColor); | ||
EditorGUILayout.PropertyField(_pFxSkybox); | ||
--EditorGUI.indentLevel; | ||
} | ||
EditorGUILayout.EndVertical(); | ||
|
||
EditorGUILayout.BeginVertical(EditorStyles.helpBox); | ||
EditorGUILayout.PropertyField(_pUseMask); | ||
if (_tm.useMask){ | ||
++EditorGUI.indentLevel; | ||
EditorGUILayout.PropertyField(_pStencilRef); | ||
EditorGUILayout.PropertyField(_pStencilMask); | ||
EditorGUILayout.PropertyField(_pStencilBias); | ||
EditorGUILayout.HelpBox("Mask may stress drawcalls and fillrate.", MessageType.Warning); | ||
--EditorGUI.indentLevel; | ||
} | ||
EditorGUILayout.EndVertical(); | ||
|
||
EditorGUILayout.Space(); | ||
|
||
DrawMotionSettings(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.