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
| public class AboutWindow : EditorWindow | |
| { | |
| public static string InstalledVersion { get => PlayerPrefs.GetString(installedVersionKey); set => PlayerPrefs.SetString(installedVersionKey, value); } | |
| private const string installedVersionKey = "Naninovel." + nameof(AboutWindow) + "." + nameof(InstalledVersion); | |
| private const string guideUri = "https://naninovel.com/guide/getting-started.html"; | |
| private const string commandsUri = "https://naninovel.com/api/"; | |
| private const string discordUri = "https://discord.gg/BfkNqem"; | |
| private const string supportUri = "https://naninovel.com/support/"; | |
| private const string reviewUri = "https://assetstore.unity.com/packages/templates/systems/naninovel-visual-novel-engine-135453#reviews"; |
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 BlendModes; | |
| using UnityEngine; | |
| [RequireComponent(typeof(BlendModeEffect))] | |
| public class SetTextureProperty : MonoBehaviour | |
| { | |
| public Texture2D Texture; | |
| [ContextMenu("Set Texture")] | |
| public void SetTexture () |
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; | |
| 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 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; | |
| 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 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
| [System.Serializable] | |
| public class Item | |
| { | |
| private string value = null; | |
| public void SetValue (string value) => this.value = value; | |
| public string GetValue () => value; | |
| } |
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 "Custom/UnlitAlphaRotation" | |
| { | |
| Properties | |
| { | |
| _MainTex("Base (RGB) Trans (A)", 2D) = "white" {} | |
| _RotationY("Rotation over Y-axis", Range(0, 360)) = 45 | |
| } | |
| SubShader |
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 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 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 "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 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 UnityEngine.Tilemaps; | |
| using BlendModes; | |
| [ExtendedComponent(typeof(TilemapRenderer))] | |
| public class TilemapRendererExtension : RendererExtension<TilemapRenderer> | |
| { | |
| public override string[] GetSupportedShaderFamilies () | |
| { | |
| return new[] { | |
| "SpritesDefault" |
NewerOlder