Skip to content

Instantly share code, notes, and snippets.

@to-osaki
to-osaki / ScriptedImporterJsonToScriptableObject.cs
Created May 20, 2019 15:29
ScriptedImporter json to ScriptableObject
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor.Experimental.AssetImporters;
using System.IO;
using UnityEditor;
// refer to
// https://docs.unity3d.com/ja/current/Manual/ScriptedImporters.html
// https://github.com/unity3d-jp/AlembicForUnity/blob/master/com.unity.formats.alembic/Editor/Importer/AlembicImporter.cs
@to-osaki
to-osaki / EditorToolTest.cs
Created May 19, 2019 22:28
Editor tool practice
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EditorToolTestScriptableObject : ScriptableObject {
public List<Group> groups = new List<Group>()
{
new Group(),
new Group(),
@to-osaki
to-osaki / NodeEditorTest.cs
Created April 11, 2019 14:46
Practice to make EditorWindow
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
class NodeEditorTest : EditorWindow
{
[MenuItem("NodeEditorTest/NodeEditorTest %t")]
static void OpenNodeEditorTest()
{
@to-osaki
to-osaki / LifeGameShader.shader
Last active February 3, 2021 01:10
Unity LifeGameShader
Shader "LifeGameShader"
{
Properties
{
}
CGINCLUDE
#include "UnityCustomRenderTexture.cginc"