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 System.Collections; | |
public class RotateTest : MonoBehaviour | |
{ | |
public GameObject target; | |
public Vector3 additional; | |
Quaternion _rot; | |
Quaternion _initRot; | |
Vector3 _vec; |
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
public class StateTest : EditorWindow | |
{ | |
[MenuItem ("Window/Test")] | |
public static void Open () | |
{ | |
EditorWindow.GetWindow<StateTest> ("Test").Show (); | |
} | |
private bool _updated = false; | |
void OnEnable () | |
{ |
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 "Unlit/WaterEffectShader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_Color ("Color", Color) = (1,1,1,1) | |
_RimColor ("Rim Color", Color) = (0,0,0,0) | |
} | |
SubShader | |
{ |
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; | |
using System.Collections.Generic; | |
using Unity.Mathematics; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
public struct MyVector | |
{ | |
public float foo; | |
public float bar; |