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
namespace UnityEngine.Experimental.Rendering | |
{ | |
using UnityEngine; | |
using UnityEditor; | |
[CustomEditor(typeof(RenderPipelineAsset), true)] | |
public class AssetPipelineInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ |
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
///////////////////////////////////////////////////////////////////////// | |
// 複数Inspectorのスクロール同期 | |
// @ 2018 RNGTM(https://github.com/rngtm) | |
///////////////////////////////////////////////////////////////////////// | |
using System.Reflection; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEditor; | |
using Type = System.Type; |
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 UnityEditor.ShaderGraph; | |
using System.Reflection; | |
[Title("Utility", "Graph Preview")] | |
public class GraphPreviewNode : CodeFunctionNode | |
{ | |
protected override MethodInfo GetFunctionToConvert() | |
{ | |
return GetType().GetMethod("MyCustomFunction", |
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 UnityEditor; | |
public class ShaderGraphGegneratorWindow : EditorWindow | |
{ | |
GUIStyle m_ButtonStyle; | |
[MenuItem("Tools/ShaderGraph Generator")] | |
static void Open() | |
{ | |
GetWindow<ShaderGraphGegneratorWindow>("ShaderGraph Generator"); |
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; | |
[RequireComponent(typeof(MeshFilter))] | |
[RequireComponent(typeof(MeshRenderer))] | |
public class GenerateManyCube : MonoBehaviour | |
{ | |
[SerializeField] bool m_GenerateMeshOnUpdate = false; | |
[Space] | |
[SerializeField] Vector3 m_CubeScale = new Vector3(1f, 1f, 1f); // 立方体の大きさ | |
[SerializeField] Vector3Int m_CubeNumbers = new Vector3Int(4, 2, 4); // 立方体の個数 |
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 UnityEditor; | |
using System.IO; | |
public class GradientToPng : EditorWindow | |
{ | |
[SerializeField] | |
private Gradient m_Gradient; | |
[MenuItem("Tools/Gradient To Png")] |
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 UnityEditor.ShaderGraph; | |
using System.Reflection; | |
/// <summary> | |
/// ドメインワーピング(http://www.iquilezles.org/www/articles/warp/warp.htm) | |
/// </summary> | |
[Title("Custom", "Domain Warping(@iquilezles)")] | |
public class DomainWarpingNode : CodeFunctionNode | |
{ |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[CustomEditor(typeof(GenerateManySphere))] | |
public class GenerateManySphereInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
base.OnInspectorGUI(); |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
[CustomEditor(typeof(GenerateBezierTube))] | |
public class GenerateBezierTubeInspector : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var bezierTube = target as GenerateBezierTube; |
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.Reflection; | |
using UnityEditor.ShaderGraph; | |
using UnityEngine; | |
/// <summary> | |
/// レイマーチングで球をたくさん表示するカスタムノード | |
/// </summary> | |
[Title ("Raymarching", "Raymarch Sphere")] | |
public class RaymarchingSphereNode : CodeFunctionNode { | |
public RaymarchingSphereNode () { |