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
@echo off | |
IF "%1"=="" ( | |
echo Usage: reencode path_to_file [optional_crf] | |
goto eof | |
) | |
SET crf="23" | |
IF NOT "%2"=="" ( | |
SET crf=%2 |
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 UnityEditor; | |
using UnityEditor.Callbacks; | |
#endif | |
using System; | |
using System.Linq; | |
using UnityEngine; | |
using S = UnityEngine.SerializeField; | |
/// <summary> |
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 System; | |
using System.Runtime.CompilerServices; | |
using System.Threading.Tasks; | |
public static class TaskTupleExtensions | |
{ | |
#region (Task<T1>) | |
public static TaskAwaiter<T1> GetAwaiter<T1>(this ValueTuple<Task<T1>> tasks) | |
{ |
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
Key Name Resulting Keystroke | |
{F1} - {F24} Function keys. For example: {F12} is the F12 key. | |
{!} ! | |
{#} # | |
{+} + | |
{^} ^ | |
{{} { | |
{}} } | |
{Enter} ENTER key on the main keyboard | |
{Escape} or {Esc} ESCAPE |
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
Shader "Diffuse Lightmap" { | |
Properties { | |
_MainTex ("Texture 1", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { "RenderType" = "Opaque" } | |
Pass { |
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 System; | |
using System.Reflection; | |
using System.Linq.Expressions; | |
class ExpressionUtil | |
{ | |
// Returns the MethodInfo of the given lambda. Use instead of Type.GetMethod("name", paramTypes). | |
public static MethodInfo GetMethod<T>(Expression<Action<T>> lambda) | |
{ | |
var call = lambda.Body as MethodCallExpression; |