Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sigtrapgames committed Oct 8, 2018
0 parents commit 7078d14
Show file tree
Hide file tree
Showing 218 changed files with 20,924 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .gitignore
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/
9 changes: 9 additions & 0 deletions Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

53 changes: 53 additions & 0 deletions Editor/VrTunnellingMobileEditor.cs
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();
}
}
}
13 changes: 13 additions & 0 deletions Editor/VrTunnellingMobileEditor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7078d14

Please sign in to comment.