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 BlendModes; | |
using UnityEngine; | |
[RequireComponent(typeof(BlendModeEffect))] | |
public class SetTextureProperty : MonoBehaviour | |
{ | |
public Texture2D Texture; | |
[ContextMenu("Set Texture")] | |
public void SetTexture () |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
namespace Naninovel |
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.Concurrent; | |
using System.IO; | |
using System.Threading.Tasks; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using UnityEngine; | |
/// <summary> | |
/// Uses file system watcher to track changes to specific files in the project directory. |
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
[System.Serializable] | |
public class Item | |
{ | |
private string value = null; | |
public void SetValue (string value) => this.value = value; | |
public string GetValue () => value; | |
} |
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 "Custom/UnlitAlphaRotation" | |
{ | |
Properties | |
{ | |
_MainTex("Base (RGB) Trans (A)", 2D) = "white" {} | |
_RotationY("Rotation over Y-axis", Range(0, 360)) = 45 | |
} | |
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 UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.LWRP; | |
// Inheriting from `ScriptableRendererFeature` will add it to the | |
// `Renderer Features` list of the custom LWRP renderer data asset. | |
public class RenderMyCustomPass : ScriptableRendererFeature | |
{ | |
private class MyCustomPass : ScriptableRenderPass | |
{ |
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 "BlendOp" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
[Enum(UnityEngine.Rendering.BlendOp)] _BlendOp("Blend Operation", Float) = 0.0 | |
[Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend("Source Blend", Float) = 1.0 | |
[Enum(UnityEngine.Rendering.BlendMode)] _DstBlend("Destination Blend", Float) = 1.0 | |
} |
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.Tilemaps; | |
using BlendModes; | |
[ExtendedComponent(typeof(TilemapRenderer))] | |
public class TilemapRendererExtension : RendererExtension<TilemapRenderer> | |
{ | |
public override string[] GetSupportedShaderFamilies () | |
{ | |
return new[] { | |
"SpritesDefault" |
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
#if LIVE2D_AVAILABLE | |
using Live2D.Cubism.Core; | |
using Live2D.Cubism.Framework; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityCommon; | |
using UnityEngine; | |
namespace Naninovel |
NewerOlder