• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 9 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Auto 9 slice sprite generator on Unity

Auto9Slicer

Auto 9 slice sprite generator on Unity.
(The library used to be called OnionRing)

Buy Me A Coffee

output

Instructions

  • Package Manager https://github.com/kyubuns/Auto9Slicer.git?path=Assets/Auto9Slicer
  • AssetStore
    • If you purchase it from AssetStore, it will be a AssetStore License. For this reason, it is sold for a fee.

Simple Use

Create Auto9SliceTester. Assets > Create > Auto 9Slice > Tester

Screen Shot 2021-01-31 at 11 25 46

Click Run to automatically slice the images in the same directory.

Screen Shot 2021-01-31 at 11 27 20

From Script

Add it to your EditorScript so that it will be executed at your desired timing.

var slicedTexture = Auto9Slicer.Slicer.Slice(texture, SliceOptions.Default);
textureImporter.spriteBorder = slicedTexture.Border.ToVector4();
File.WriteAllBytes(filePath, slicedTexture.Texture.EncodeToPNG());

Requirements

  • Requires Unity2019.4 or later

License

MIT License (see LICENSE)

Buy me a coffee

Are you enjoying save time?
Buy me a coffee if you love my code!
https://www.buymeacoffee.com/kyubuns

"I used it for this game!"

I'd be happy to receive reports like "I used it for this game!"
Please contact me by email, twitter or any other means.
(This library is MIT licensed, so reporting is NOT mandatory.)
https://kyubuns.dev/

More Repositories

1

AkyuiUnity

Adobe XD to Akyui to Unity UI
C#
373
star
2

AnimeTask

Task Animation Library for Unity
C#
318
star
3

Baum2

Psd to Unity UI(uGUI)
C#
280
star
4

AnimeRx

Rx Tween Animation Library for Unity
C#
200
star
5

AppIconChangerUnity

Change the app icon dynamically in Unity (iOS only)
C#
122
star
6

AnKuchen

Control UI Prefab from Script Library
C#
99
star
7

BasicShapeSprite

BasicShapeSprite is a drawing beautiful squares and circles as sprite for unity.
C#
42
star
8

onion_ring

auto 9 sliced sprite (9 patch) generator
Ruby
40
star
9

AbcConsole

Mobile-friendly debug console
C#
38
star
10

prefab_in_prefab

[deprecated]
C#
38
star
11

AssetBookmarks

An editor extension that allows you to register and display commonly use assets
C#
37
star
12

UnityRemoveDevWatermark

C#
37
star
13

Kuchen

Pub/Sub for Unity
C#
32
star
14

ApureEasing

Easing library for Unity Visual Scripting
C#
26
star
15

Akyui

File format for define game UI
17
star
16

UniClipboard

Clipboard for Unity ( support PC/Mac/iOS )
C#
16
star
17

js_ruby_chat

javascript <-> ( msgpack -> websocket -> msgpack ) <-> server
Ruby
15
star
18

ObjectWeightScale

Display a list of assets that a GameObject refers to and check their sizes.
C#
14
star
19

BridgeJsCoreUnity

The fast JavaScript executor for Unity iOS, macOS by using JavaScriptCore
C#
13
star
20

UniClipboard20xx

Clipboard for Unity2017(Support: Editor, Windows, Mac, iOS)
C#
12
star
21

Adobe-Japan1-List

Adobe-Japan1の文字一覧です。
C#
12
star
22

PostProcessingPaletteSwap

Color palette swap for Unity PostProcessingStack
C#
11
star
23

Aprot

Accelerated Prototyping Framework for Unity
10
star
24

DataBinderForNGUI

NGUIのWidgetに勝手に値いれてくれるやつ
C#
8
star
25

misterioso

枠Work
Ruby
6
star
26

illustrator_replace

イラレデータ内のテキストアイテムをtsvに従って置換してくれるスクリプト
JavaScript
6
star
27

HaxeUnityBenchmark

Haxeで書いたコードをUnity上で動かすにあたり、どんな方法が良いか検討するための実験コード
C#
6
star
28

XdParser

Adobe XD file parser for C#
C#
5
star
29

mini_unity_chan_on_unity

ミニゆにてぃちゃん on Unity
C#
4
star
30

rpg_maker_test

GitHub Pagesでそのままゲームを遊べるようにしてみる。
JavaScript
4
star
31

ReflectBall

Unity 1週間ゲームジャム - お題「当てる」
C#
4
star
32

wakutuke

枠を付ける
Shell
4
star
33

haxe-socketio-chat

haxe + socket.io de chat => WakuRPCのsample_chatに移動しました
Haxe
4
star
34

yogurt

PhotoshopPlugin: レイヤー毎に素早くファイルで保存する
JavaScript
3
star
35

WakuTest

C#
3
star
36

QuizGameSample

AdobeXDを用いたUnityゲーム開発フローのサンプルプロジェクト
ShaderLab
3
star
37

StringSerializableEnum

By serializing Enums as Strings instead of Int, you can add or remove values from the Enum without causing issues.
C#
3
star
38

MMOM

MMOもどき
JavaScript
2
star
39

AutomaticOperationTest

C#
2
star
40

AnimeSandbox

AnimeRx & AnimeTask Sandbox
C#
2
star
41

wakusocket

C++
2
star
42

VariableMonitor

C#
2
star
43

warabi

PhotoshopPlugin: レイヤー毎に重ならないようにいい感じに並べてくれる
JavaScript
2
star
44

StreamingAssetsDemo

Qiitaの記事用
C#
2
star
45

codevs

C++
1
star
46

TilemapBugreport

C#
1
star
47

hubot_tokusub

hubotが今日の得サブを教えてくれる
CoffeeScript
1
star
48

DiceCountGame

サイコロ数えるゲームを作ろうとして飽きたやつ
C#
1
star
49

UniRxSandbox

C#
1
star
50

Sample1030918

Unityへのバグ報告用
1
star
51

illustrator_csv_importer

イラレデータにcsvからテキストを流し込むやつ
JavaScript
1
star
52

GIT_SAFE_RESET

git reset --hard HEADで泣いたことがある人向け
1
star
53

BugReportConditionalWeakTable

Unityへのバグ報告用
C#
1
star
54

githooks

core.hooksPath = ~/.githooks
Shell
1
star
55

MsgPackTest

バグ報告用
C#
1
star
56

favme

Flask+jinja2を使用したwebサイト制作時に簡単にXSS対策を出来るようにする便利クラス
Python
1
star
57

prism-theme-gist

GitHub Gist theme for prism.js
HTML
1
star
58

shaved_ice

PhotoshopPlugin: 全部のレイヤーをそれぞれラスタライズする
JavaScript
1
star
59

CheeseCake

C#のコードを綺麗にするやつ
C#
1
star
60

kyubuns

1
star