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
/// | |
/// | |
/// #SCRIPTNAME#, created by Karlos Zafra | |
/// | |
////// | |
using UnityEngine; | |
using System.Collections; | |
public class #SCRIPTNAME# : MonoBehaviour |
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
[user] | |
name = Karlos Zafra | |
email = [email protected] | |
[alias] | |
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend | |
br = branch | |
co = checkout | |
cob = checkout -b | |
continue = rebase --continue |
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
// | |
// | |
// DeletePlayerPrefs, created by Karlos Zafra | |
// | |
// | |
using UnityEngine; | |
using UnityEditor; | |
public class DeletePlayerPrefs |
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 UnityEditor; | |
using System.Collections; | |
[InitializeOnLoad] | |
public class PlatformMonitor { | |
static BuildTarget cachedPlatform; | |
static PlatformMonitor() { | |
cachedPlatform = EditorUserBuildSettings.activeBuildTarget; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
public class DisableAnimations : AssetPostprocessor | |
{ | |
void OnPreprocessModel() | |
{ | |
var modelImporter = assetImporter as ModelImporter; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class EnableLatentFrame : MonoBehaviour | |
{ | |
void Start () { | |
UnityEngine.VR.WSA.HolographicSettings.ActivateLatentFramePresentation( 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
using UnityEngine; | |
using System.Collections; | |
using System.Linq; | |
public class EnvPresetChooser : MonoBehaviour { | |
public Transform[] presets { get { return transform.Cast<Transform>().ToArray(); } } | |
public int GetActivePreset() { | |
for(int i = 0, n = transform.childCount; i < n; ++i) | |
if(transform.GetChild(i).gameObject.activeSelf) |
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
// | |
// Controls: | |
// - Enable free look with right mouse button | |
// | |
// | |
using UnityEngine; | |
public class FreeCamera : MonoBehaviour { | |
public bool enableInputCapture = 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
// | |
// Controls: | |
// - Enable free look with right mouse button | |
// | |
// | |
using UnityEngine; | |
public class FreeCamera : MonoBehaviour { | |
public bool enableInputCapture = 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
Shader "Name" { | |
Properties { | |
name ("display name", Range (min, max)) = number | |
name ("display name", Float) = number | |
name ("display name", Int) = number | |
name ("display name", Color) = (number,number,number,number) | |
name ("display name", Vector) = (number,number,number,number) |