Code Monkey home page Code Monkey logo

quickruletileeditor's Introduction

Quick Rule Tile

openupm

An Unity editor window for creating and then editing rule tiles (aka auto tiles).

Quick Rule Tile min

Example uses assets by Kenney

Features

  • Create and edit rule tiles in custom handy window
  • Support for often used 16, 15 and 47 tiles pattern
  • Support for any custom patterns (just other rule tiles)
  • Support for editing rule's game object and collider type (with "Apply for all" button)

Planned features:

  • Animations/sprite variants editing support (but now editor preserves unsupported properties like output type as is, you can change them directly)
  • Grid-ish pattern view (instead of just list)

Requirements

Package requires Unity 2021.1+ and 2D Tilemap Extras package (in which the rule tile itself).

Unity 2021 is required because tool is developed based on UI Toolkit, older versions do not have some built-in components. However, you can try to work around this in Unity 2020.3 by manually installing the com.unity.ui preview package (not tested).

Tested on Unity 2021.3.9f1

How to use

  1. Navigate to Window/Quick Rule Tile
  2. Select pattern in dropdown list under "New" and "Open" buttons.
  3. In that window drag and drop sprites or texture (should be sliced into sprites) to the top empty area (sprites list).
  4. Pay attention to the current tile in the bottom area (tiles list) and click on the corresponding sprite, then next and next, current tile will move as you selecting sprites. You can also change selected tile by clicking on them and re-select sprite for it.
  5. As soon as all tiles are assigned, press the "Save as..." button to save asset.

Later you will be able to edit this rule tile by clicking "Open" button on the top toolbar.

Installation

Add from OpenUPM (Recommended)

CLI

openupm add com.stalengd.quickruletileeditor
Manual installation
  • open Edit/Project Settings/Package Manager
  • add a new Scoped Registry (or edit the existing OpenUPM entry):
    Name: package.openupm.com
    URL:  https://package.openupm.com/
    Scope(s): com.stalengd.quickruletileeditor
    
  • click Save (or Apply)
  • open Window/Package Manager
  • click +
  • select Add package by name... or Add from Git URL...
  • paste com.stalengd.quickruletileeditor into name
  • paste 0.3.0 into version
  • click Add

Add from Git URL

  • open Window/Package Manager
  • click +
  • select Add from Git URL...
  • paste https://github.com/stalengd/QuickRuleTileEditor.git
  • click Add

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.