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
using Cysharp.Threading.Tasks; | |
using System; | |
using System.Threading; | |
using UnityEngine; | |
public class UniTaskDemo_CancellationToken : MonoBehaviour | |
{ | |
CancellationTokenSource animateTokenSource; | |
void Start() |
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
HEADER | |
{ | |
CompileTargets = ( IS_SM_50 && ( PC || VULKAN ) ); | |
Description = "Retro Pixelation + Low Bit Colour + Dither Post Effect"; | |
} | |
FEATURES | |
{ | |
} |
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
HEADER | |
{ | |
CompileTargets = ( IS_SM_50 && ( PC || VULKAN ) ); | |
Description = "Hologram Effect"; | |
} | |
FEATURES | |
{ | |
#include "common/features.hlsl" |
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
import shutil | |
import os | |
import sys | |
here = os.path.dirname(__file__) | |
class SortingSet: | |
targetFolder = "" | |
matches = [] |
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
import os | |
import re | |
import json | |
# A script to extract all detault tint colours from VMTs | |
# Outputs a json file with all values, vmtname: defaultcolour. | |
# Where your VMT files are stored. This is relative to the scripts path. | |
vmtFolder = "_SourceVMT" |
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
# BZipAll script to quickly bzip all files in a directory. | |
# Made by rob5300 | |
# FILL ME IN!!! THIS MAY NOT BE RIGHT FOR YOU!! | |
# Full path to your 7z.exe executable from your 7z install. Plz download or install it if you need from 7-zip.org | |
_7zpath = r"C:\Program Files\7-Zip\7z.exe" | |
#Extensions to ignore | |
ignore = [".py", ".sp", ".smx", ".bz2"] |
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
using UnityEngine; | |
public class MyBox : MonoBehaviour, IInteractable{ | |
//We must implement this due to the interface | |
public void Interact(){ | |
Debug.Log("I was interacted with!"); | |
Destroy(gameObject); | |
} | |
} |
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
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEditor; | |
/// <summary> | |
/// Applies preset layermask on scene open and restores it on scene closed. | |
/// Made for use in custom ui prefab editing scenes to show the UI layer automatically. | |
/// </summary> | |
[ExecuteInEditMode] | |
public class CanvasEditorHelper : MonoBehaviour |
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
//Game settings class | |
public class GameSettings | |
{ | |
//Declare this as static meaning it is accessable via the class name | |
public static RandomClass RandomSettings = new RandomClass(); | |
} | |
//Class decleration for Random. | |
public class RandomClass | |
{ |
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
using UnityEngine.Timeline; | |
[TrackColor(0.9716981f, 0.4145757f, 0.3529281f)] | |
[TrackClipType(typeof(DialogueTriggerClip))] | |
public class DialogueTriggerTrack : TrackAsset | |
{ | |
} |
NewerOlder