Skip to content

Dactarium/Unity-Simple-Pattern-Editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity Simple Pattern Editor

Getting Started

add PatternEditor.cs to Unity's "Assets/Editor" Folder
add PatternConverter.cs to Unity's "Assets" Folder

Creating new pattern

Open Window/Pattern Editor

image

Enter pattern name, type and size

image

Design pattern and click Save Patern button

image

After clicking save button you will see new pattern (Json File) at "Assets/Patterns/'Pattern type'/'Pattern width'x'Pattern height'" folder PS. If you check Focus after save you will automaticly see file you create

image

Editing exist pattern

Click Edit button Select exist pattern json

image

Edit pattern from edit area

image

Click Save Patern button

Example usage in Script (Bool Pattern Json)

public TextAsset json;
public bool[,] pattern = PatternConverter.convert<bool>(json.text);

Supported Data Types

Boolean, Integer, Float, String

About

Matrix editor for Unity. Saves matrix as json file

Topics

Resources

License

Stars

Watchers

Forks

Languages