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 "Unlit/DokabenGeometry" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags |
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
#if UNITY_EDITOR && UNITY_WEBGL | |
namespace MyContents.Editor | |
{ | |
using UnityEngine; | |
using UnityEditor; | |
[InitializeOnLoad] | |
public class EditInitialSetting | |
{ | |
static EditInitialSetting() |
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
namespace MainContents.AudioUtility | |
{ | |
using UnityEngine; | |
// UE4のSoundCueを参考にしたもの。 | |
// 内容的にはAudioClipのラッパー的な立ち位置で、AudioClipを取得する際の振る舞いを実装するもの。 | |
// →例 : ランダムでClipを返すもの、配列に登録したClipを順番に取得など。 | |
// ※本当はinterfaceにしたいけどSerializeFieldで登録する都合上、敢えて基底クラスとする... | |
public abstract class AudioCue : ScriptableObject | |
{ |
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
// https://twitter.com/TEST_H_/status/1023975602494169092 | |
using System; | |
using System.Diagnostics; | |
namespace MyContents | |
{ | |
class Test | |
{ | |
static void Main() |
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
// Inspectorに表示されている配列の要素をソートするサンプル | |
namespace MainContents.Test | |
{ | |
using UnityEngine; | |
using System.Collections; | |
[CreateAssetMenu(menuName = "ScriptableObjects/InspectorArraySortTest", fileName = "InspectorArraySortTest")] | |
public class InspectorArraySortTest : ScriptableObject | |
{ |
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
// 参考サイト | |
// ・セルラーノイズ | |
// https://thebookofshaders.com/12/?lan=jp | |
Shader "Custom/WorleyNoise" | |
{ | |
CGINCLUDE | |
#include "UnityCG.cginc" | |
float2 random2(fixed2 st) |
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
// Nature of Code : Chapter5 参照 | |
import toxi.physics2d.behaviors.*; | |
import toxi.physics2d.*; | |
import toxi.geom.*; | |
import toxi.math.*; | |
VerletPhysics2D physics; | |
Blanket blanket; |
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
class Object | |
{ | |
float _mass; | |
PVector _location; | |
PVector _velocity; | |
PVector _acceleration; | |
float _G; | |
Object(float mass, float x, float y) | |
{ |
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.Reflection; | |
using UnityEditor; | |
/// <summary> | |
/// 阿部寛のホームページを表示するためのEditor拡張 | |
/// </summary> | |
public static class AbeHirosh_HP_Window | |
{ | |
[MenuItem(@"Window/阿部寛のホームページ")] | |
static void Open() |
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
// "Sprites/Default"のドカベンロゴアニメーション版 | |
Shader "Dokaben/Sprites/Title-Animation" | |
{ | |
Properties | |
{ | |
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {} | |
_Color ("Tint", Color) = (1,1,1,1) | |
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0 | |
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1) |