Skip to content

Instantly share code, notes, and snippets.

/// <summary>
/// Curved Layout Group Created by Freezy - http://www.ElicitIce.com
/// Posted on Unity Forums http://forum.unity3d.com/threads/script-curved-layout.403985/
///
/// Free for any use and alteration, source code may not be sold without my permission.
/// If you make improvements on this script please share them with the community.
///
/// </summary>
namespace UnityEngine.UI.Extensions
Shader "Sprites/Fill Amount"
{
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
[HideInInspector] _Color ("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
[HideInInspector] _RendererColor ("RendererColor", Color) = (1,1,1,1)
[HideInInspector] _Flip ("Flip", Vector) = (1,1,1,1)
[PerRendererData] _AlphaTex ("External Alpha", 2D) = "white" {}
using System;
using UnityEditor;
namespace Kogane.Internal
{
[InitializeOnLoad]
internal static class SetUseAuthEmulatorEnvironmentVariable
{
static SetUseAuthEmulatorEnvironmentVariable()
{
using UnityEditor;
namespace Kogane
{
internal sealed class SpriteAssetPostprocessor : AssetPostprocessor
{
private void OnPreprocessTexture()
{
var textureImporter = ( TextureImporter )assetImporter;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
namespace Kogane
{
[RequireComponent( typeof( MeshFilter ), typeof( MeshRenderer ) )]
public sealed class ColoredTilemap : MonoBehaviour
{
private const int VERTICES_PER_TILE = 4;
#!/usr/bin/env python3
import argparse
import json
import sys
from pathlib import Path
import shutil
def read_package_name(pkg_dir: Path):
pj = pkg_dir / "package.json"
if not pj.is_file():
using System.Diagnostics;
using System.IO;
using UnityEditor.Android;
namespace Kogane
{
public static class AppBundleInstaller
{
public static void Install( string aabFileName )
{
using System.IO;
using System.Linq;
using UnityEditor;
namespace Kogane
{
public static class AndroidBundletoolPath
{
private static string m_value;
using UnityEditor;
using UnityEditor.Toolbars;
using UnityEngine;
public static class Example
{
[MainToolbarElement( "ピカチュウ", defaultDockPosition = MainToolbarDockPosition.Middle )]
public static MainToolbarElement Create()
{
var image = ( Texture2D )EditorGUIUtility.IconContent( "SettingsIcon" ).image;
using JetBrains.Annotations;
using UnityEngine;
namespace Kogane
{
public static class UIOverlapChecker
{
private static readonly Vector3[] CORNERS = new Vector3[ 4 ];
public static bool IsOverlapping