This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using Valve.VR; | |
| using Valve.Interop; | |
| // bool VR_IVRTrackedCamera_HasCamera(IntPtr instancePtr, uint nDeviceIndex); | |
| // bool VR_IVRTrackedCamera_GetCameraFirmwareDescription(IntPtr instancePtr, uint nDeviceIndex, string pBuffer, uint nBufferLen); | |
| // bool VR_IVRTrackedCamera_GetCameraFrameDimensions(IntPtr instancePtr, uint nDeviceIndex, ECameraVideoStreamFormat nVideoStreamFormat, ref uint pWidth, ref uint pHeight); | |
| // bool VR_IVRTrackedCamera_SetCameraVideoStreamFormat(IntPtr instancePtr, uint nDeviceIndex, ECameraVideoStreamFormat nVideoStreamFormat); |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| public class CameraSmooth | |
| : MonoBehaviour | |
| { | |
| public Camera cameraTarget; | |
| public Camera cameraSelf; | |
| public bool enableSmooth = true; |
This file contains hidden or 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
| working_directory=$(pwd) | |
| cd "../Unity/MYGAME" | |
| echo $(pwd) | |
| git_hash=$(git rev-parse HEAD) | |
| cd $working_directory | |
| echo $working_directory | |
| echo "Build Description: " | |
| read input_description |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Runtime.InteropServices; | |
| [ExecuteInEditMode] | |
| public class ParticlePerlinTurbulence | |
| : MonoBehaviour | |
| { | |
| private ParticleSystem system; | |
| private ParticleSystem.Particle[] particles; |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| [InitializeOnLoad()] | |
| class PrefabStatusHelper | |
| { |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| [InitializeOnLoad()] | |
| class MeshCombinerHelperTag | |
| { |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Reflection; | |
| public class SingletonMonoBehaviourOnDemand<T> | |
| : MonoBehaviour | |
| where T : Component | |
| { | |
| private static T instance; | |
| public static T Instance |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| [DisallowMultipleComponent] | |
| public class StaticBatchingHelper | |
| : MonoBehaviour | |
| { | |
| public void Update() | |
| { |
This file contains hidden or 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
| alias gs='git.exe status' | |
| alias ga='git.exe add' | |
| alias gd='git.exe diff' | |
| alias gc='git.exe commit' | |
| alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative --branches' | |
| alias gxx='git checkout -- "*" && git clean -fd' |
This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| public class DebugTextHelper | |
| : SingletonMonoBehaviourOnDemand<DebugTextHelper> | |
| { | |
| public abstract class MessageBase | |
| { | |
| public TextMesh text; |