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.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
public abstract class BaseClip : PlayableAsset | |
{ | |
[HideInInspector, SerializeField] | |
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
java.lang.RuntimeException: | |
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3623) | |
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3775) | |
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:83) | |
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) | |
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) | |
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2261) | |
at android.os.Handler.dispatchMessage (Handler.java:107) | |
at android.os.Looper.loop (Looper.java:237) | |
at android.app.ActivityThread.main (ActivityThread.java:8107) |
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
архипиздрит | |
басран | |
бздение | |
бздеть | |
бздех | |
бзднуть | |
бздун | |
бздунья | |
бздюха | |
бикса |
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
private Texture2D RenderTextureTo2DTexture(RenderTexture rt) | |
{ | |
var texture = new Texture2D(rt.width, rt.height, rt.graphicsFormat, 0, TextureCreationFlags.None); | |
RenderTexture.active = rt; | |
texture.ReadPixels(new Rect(0, 0, rt.width, rt.height), 0, 0); | |
texture.Apply(); | |
RenderTexture.active = null; |
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
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt) | |
Shader "Standard2Sided" | |
{ | |
Properties | |
{ | |
_Color("Color", Color) = (1,1,1,1) | |
_MainTex("Albedo", 2D) = "white" {} | |
_Cutoff("Alpha Cutoff", Range(0.0, 1.0)) = 0.5 |
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
//see https://github.com/Unity-Technologies/UnityCsReference/blob/9034442437e6b5efe28c51d02e978a96a3ce5439/Editor/Mono/Inspector/StandardShaderGUI.cs | |
//blend mode 3 - transparent | |
public static void SetupMaterialWithBlendMode(Material material, int blendMode) | |
{ | |
var assembly = Assembly.GetAssembly(typeof(Editor)); | |
var type = assembly.GetType("UnityEditor.StandardShaderGUI"); | |
var method = type.GetMethod("SetupMaterialWithBlendMode"); | |
method.Invoke(null, new object[] {material, blendMode}); | |
} |
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; | |
using UnityEngine.EventSystems; | |
public class MyStandaloneInputModule : StandaloneInputModule | |
{ | |
public RectTransform m_VirtualCursor; | |
private Vector2 m_LastMousePosition; | |
private Vector2 m_MousePosition; |
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.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
using Object = UnityEngine.Object; | |
//version 0.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
using System; | |
using System.IO; | |
using System.Reflection; | |
using UnityEditor; | |
public static class LayoutHotKey | |
{ | |
const string layoutName = "Temp/autosave.wlt"; | |
// % (ctrl), # (shift), & (alt) |