• Stars
    star
    1,387
  • Rank 32,582 (Top 0.7 %)
  • Language
    C#
  • License
    Other
  • Created almost 7 years ago
  • Updated 11 months ago

Reviews

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

Repository Details

Fun 2D Stuff that we'd like to share!

Notice

No more development on 2d-extras GitHub repository

We are changing how we develop additional 2D Tiles and Brushes for 2D Tilemap. An important part of this change involves ensuring a single point of entry for users to get the latest tiles and brushes for Tilemap. To this end we created the Tilemap Extras package which is accessible from Package Manager. Moving forward, the 2D-extras GitHub repository will be made read-only. You will still be able to clone and pull the contents of the repository as it is right now.

Tilemap Extras already includes Animated Tiles, RuleTile (Rectangular Isometric and Hexagonal), the Rule Override Tiles, Group Brush, Line Brush, Random Brush and GameObject Brush. It also includes 3 samples covering common use-cases of Rule Tiles and Animated Tiles. Read more about Tilemap Extras in the announcement thread.

If there is functionality in 2d-extras that is important to your team and your product please let us know in this thread or start a discussion in the 2D forums and we will consider adding it to the Tilemap Extras package.

For issues with the Tilemap Extras please use the standard Unity channels via the Unity Bug Reporter and/or starting a thread in our forums instead of the GitHub Repository Issues tracker.

Thank you for all your contributions over the years. As always, let us know about your needs and project plans and we will endeavor to make Tilemap Extras an even better tool for developing 2D games in Unity!

2d-extras

2d-extras is a repository containing helpful reusable scripts which you can use to make your games, with a slant towards 2D. Feel free to customise the behavior of the scripts to create new tools for your use case!

Implemented examples using these scripts can be found in the sister repository 2d-techdemos.

All items in the repository are grouped by use for a feature and are listed below.

How to use this

You can use this in two different ways: downloading this repository or adding it to your project's Package Manager manifest.

Alternatively, you can pick and choose the scripts that you want by placing only these scripts in your project's Assets folder.

Download

Setup

Download or clone this repository into your project in the folder Packages/com.unity.2d.tilemap.extras.

Package Manager Manifest

Requirements

Git must be installed and added to your path.

Setup

The following line needs to be added to your Packages/manifest.json file in your Unity Project under the dependencies section:

"com.unity.2d.tilemap.extras": "https://github.com/Unity-Technologies/2d-extras.git#master"

Tilemap

For use with Unity 2021.1.0f1 onwards.

Please use the 2020.3 branch for Unity 2020.1-2020.3 versions.

Please use the 1.5.0-preview tag for Unity 2019.2-2019.4 versions.

Please use the 2019.1 tag for Unity 2019.1 versions.

Please use the 2018.3 branch or the 2018.3 tag for Unity 2018.3-2018.4 versions.

Please use the 2018.2 branch or the 2018.2 tag for Unity 2018.2 versions.

Please use the 2017 branch or the 2017 tag for earlier versions of Unity (from 2017.2 and up).

Brushes
  • Coordinate: This Brush displays the cell coordinates it is targeting in the SceneView. Use this as an example to create brushes which have extra visualization features when painting onto a Tilemap.
  • Line: This Brush helps draw lines of Tiles onto a Tilemap. The first click of the mouse sets the starting point of the line and the second click sets the ending point of the line and draws the lines of Tiles. Use this as an example to modify brush painting behaviour to making painting quicker with less actions.
  • Random: This Brush helps to place random Tiles onto a Tilemap. Use this as an example to create brushes which store specific data per brush and to make brushes which randomize behaviour.
  • Prefab: This Brush instances and places the containing Prefab onto the targeted location and parents the instanced object to the paint target. Use this as an example to quickly place an assorted type of GameObjects onto structured locations.
  • PrefabRandom: This Brush instances and places a randomly selected Prefabs onto the targeted location and parents the instanced object to the paint target. Use this as an example to quickly place an assorted type of GameObjects onto structured locations.
  • GameObject: This Brush instances, places and manipulates GameObjects onto the scene. Use this as an example to create brushes which targets objects other than tiles for manipulation.
  • TintBrush: Brush to edit Tilemap per-cell tint colors.
  • TintBrushSmooth: Advanced tint brush for interpolated tint color per-cell. Requires the use of custom shader (see TintedTilemap.shader) and helper component TileTextureGenerator.
  • Group: This Brush helps to pick Tiles which are grouped together by position. Gaps can be set to identify if Tiles belong to a Group. Limits can be set to ensure that an over-sized Group will not be picked. Use this as an example to create brushes that have the ability to choose and pick whichever Tiles it is interested in.
Tiles
  • Animated: Animated Tiles are tiles which run through and display a list of sprites in sequence.
  • Pipeline: Pipeline Tiles are tiles which take into consideration its orthogonal neighboring tiles and displays a sprite depending on whether the neighboring tile is the same tile.
  • Random: Random Tiles are tiles which pseudo-randomly pick a sprite from a given list of sprites and a target location, and displays that sprite.
  • Terrain: Terrain Tiles, similar to Pipeline Tiles, are tiles which take into consideration its orthogonal and diagonal neighboring tiles and displays a sprite depending on whether the neighboring tile is the same tile.
  • RuleTile: Generic visual tile for creating different tilesets like terrain, pipeline, random or animated tiles.
  • Hexagonal Rule Tile: A Rule Tile for use with Hexagonal Grids. Enable Flat Top for Flat Top Hexagonal Grids and disable for Pointed Top Hexagonal Grids.
  • Isometric Rule Tile: A Rule Tile for use with Isometric Grids.
  • RuleOverrideTile: Rule Override Tiles are Tiles which can override a subset of Rules for a given Rule Tile to provide specialised behaviour while keeping most of the Rules originally set in the Rule Tile.
  • Weighted Random: Weighted Random Tiles are tiles which randomly pick a sprite from a given list of sprites and a target location, and displays that sprite. The sprites can be weighted with a value to change its probability of appearing.
Other
  • GridInformation: A simple MonoBehaviour that stores and provides information based on Grid positions and keywords.
  • Custom Rules for RuleTile: This helps to create new custom Rules for the Rule Tile. Check the Wiki or this great video for more information on how to use this!

How to make Custom Rule Tiles in Unity Video

More Repositories

1

ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
C#
16,244
star
2

UnityCsReference

Unity C# reference source code.
C#
10,410
star
3

EntityComponentSystemSamples

C#
6,826
star
4

FPSSample

A first person multiplayer shooter example project in Unity
C#
4,771
star
5

PostProcessing

Post Processing Stack
C#
3,665
star
6

NavMeshComponents

High Level API Components for Runtime NavMesh Building
C#
2,941
star
7

arfoundation-samples

Example content for Unity projects based on AR Foundation
C#
2,904
star
8

BoatAttack

Demo Project using the Universal RP from Unity3D
C#
2,459
star
9

Graphics

Unity Graphics - Including Scriptable Render Pipeline
C#
2,404
star
10

com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
C#
2,063
star
11

AssetBundles-Browser

Editor tool for viewing and debugging asset bundle contents before and after builds
C#
1,940
star
12

UniversalRenderingExamples

This project contains a collection of Custom Renderer examples. This will be updated as we refine the feature and add more options.
C#
1,923
star
13

VolumetricLighting

Lighting effects implemented for the Adam demo: volumetric fog, area lights and tube lights
C#
1,576
star
14

Unity-Robotics-Hub

Central repository for tools, tutorials, resources, and documentation for robotics simulation in Unity.
C#
1,544
star
15

AutoLOD

Automatic LOD generation + scene optimization
C#
1,534
star
16

com.unity.multiplayer.samples.coop

A small-scale cooperative game sample built on the new, Unity networking framework to teach developers about creating a similar multiplayer game.
C#
1,500
star
17

VisualEffectGraph-Samples

Visual Effect Graph - Samples Project
C#
1,498
star
18

InputSystem

An efficient and versatile input system for Unity.
C#
1,396
star
19

Animation-Instancing

This technique is designed to instance Characters(SkinnedMeshRender).
C#
1,366
star
20

Unity.Mathematics

The C# math library used in Unity providing vector types and math functions with a shader like syntax
C#
1,354
star
21

multiplayer

Unity multiplayer packages and samples
1,328
star
22

DOTS-training-samples

Samples designed as exercises to be ported from Unity GameObjects/MonoBehaviours to Unity DOTS.
C#
1,281
star
23

UnityRenderStreaming

Streaming server for Unity
C#
1,257
star
24

game-programming-patterns-demo

A repo of small demos that assemble some of the well-known design patterns in Unity development to support the ebook "Level up your code with game programming patterns"
C#
1,255
star
25

Addressables-Sample

Demo project using Addressables package
ShaderLab
1,216
star
26

ShaderGraph

Unity ShaderGraph project
C#
1,154
star
27

AssetGraph

Visual Workflow Automation Tool for Unity.
C#
1,088
star
28

XR-Interaction-Toolkit-Examples

This repository contains various examples to use with the XR Interaction Toolkit
C#
974
star
29

FontainebleauDemo

Fontainebleau demo
C#
947
star
30

uGUI

Source code for the Unity UI system.
C#
937
star
31

DOTSSample

A third person, multiplayer sample project. Built with Unity and using the new Data Oriented Tech Stack (DOTS).
C#
932
star
32

EditorXR

Author XR in XR
C#
923
star
33

SpaceshipDemo

Spaceship Demo - AAA Playable First person demo showcasing effects made with Visual Effect Graph and rendered with High Definition Render Pipeline
C#
916
star
34

VFXToolbox

Additional tools for Visual Effect Artists
C#
909
star
35

2d-techdemos

Tech Demos for Unity 2D Features
C#
881
star
36

ProjectTinySamples

Samples for Project Tiny
C#
860
star
37

UnityPlayground

A collection of simple scripts to create 2D physics game, intended for giving workshops to a young audience
C#
806
star
38

com.unity.formats.alembic

Alembic importer and exporter plugin for Unity
C#
786
star
39

HLODSystem

C#
774
star
40

HLSLcc

DirectX shader bytecode cross compiler
C++
770
star
41

ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
C#
763
star
42

giles

GILES: A Runtime Level Editor for Unity3D
C#
743
star
43

com.unity.perception

Perception toolkit for sim2real training and validation in Unity
C#
734
star
44

com.unity.webrtc

WebRTC package for Unity
Assembly
721
star
45

UniteAustinTechnicalPresentation

C#
721
star
46

SuperScience

Gems of Unity Labs for our user-base.
C#
704
star
47

BackgroundDownload

Plugins for mobile platforms to enable file downloads in background
C#
687
star
48

com.unity.demoteam.hair

An integrated solution for authoring / importing / simulating / rendering strand-based hair in Unity.
C#
684
star
49

NativeRenderingPlugin

C++ Rendering Plugin example for Unity
C
633
star
50

uaal-example

Objective-C++
605
star
51

com.unity.uiwidgets

UIWidgets is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
C#
603
star
52

guid-based-reference

A component for giving Game Objects a GUID and a class to create references to objects in any Scene by GUID
C#
600
star
53

com.unity.multiplayer.docs

Open Source documentation for Unity Multiplayer, which includes Netcode for GameObjects, the Unity Transport Package, Multiplayer Tools and Educational references and Sample Games such as Boss Room.
JavaScript
590
star
54

MeshApiExamples

Example project for Unity 2020.1 Mesh API improvements
C#
558
star
55

unity-cache-server

Unity CacheServer optimized for multi-client local networks
JavaScript
554
star
56

barracuda-release

C#
554
star
57

Standard-Assets-Characters

Unity Standard Asset Controllers
C#
545
star
58

SimpleAnimation

A simple Animation Component that leverages PlayableGraphs
C#
539
star
59

GenericFrameRecorder

This GitHub package is DEPRECATED. Please get the new Unity Recorder from the Asset Store (https://assetstore.unity.com/packages/essentials/unity-recorder-94079) Use the editor builtin Bug Reporter to report issues. You can track and vote for issues on the Issue Tracker (https://issuetracker.unity3d.com)
C#
533
star
60

obstacle-tower-env

Obstacle Tower Environment
Python
532
star
61

graph-visualizer

Visualizer for your Playable graphs
C#
522
star
62

DeLightingTool

De-Lighting tool
C#
512
star
63

com.unity.demoteam.digital-human

Library of tech features used to realize the digital human from 'The Heretic' and 'Enemies'.
C#
503
star
64

PhysicsExamples2D

Examples of various Unity 2D Physics components and features.
C#
496
star
65

arfoundation-demos

AR Foundation demo projects
C#
490
star
66

usd-unity-sdk

Integration of Pixar's Universal Scene Description into Unity. UPDATE: This package has been superseded by our new bundle of USD packages. Please see README & link below for further details.
C#
489
star
67

facial-ar-remote

**This project is discontinued** Facial AR Remote is a tool that allows you to capture blendshape animations directly from your iPhone X into Unity 3d by use of an app on your phone.
C#
482
star
68

animation-jobs-samples

Code samples using the animation C# jobs feature.
C#
464
star
69

vscode-unity-debug

Unity debugging support for VS Code
C#
458
star
70

com.unity.cinemachine

Smart camera tools for passionate creators
C#
457
star
71

MeshSyncDCCPlugins

DCC plugins for MeshSync in Unity. Supported tools: Maya, Maya LT, 3ds Max, Motion Builder, Modo, Blender, Metasequoia
C++
438
star
72

UIElementsExamples

Unity project containing examples to use UIElements in the Editor
C#
434
star
73

megacity-metro

Megacity-Metro: a thrilling shooter game, using Netcode for Entities for a multiplayer experience supporting 128+ players. Latest DOTS packages and Unity Gaming Services elevate the user experience, demonstrating how to craft engaging multiplayer games.
C#
425
star
74

com.unity.demoteam.mesh-to-sdf

A light and fast real-time SDF generator, primarily for animated characters. The dynamic SDF can be used for all sorts of VFX. Also enables hair-to-character collisions in the new hair package.
C#
402
star
75

Unity.Animation.Samples

Repository of projects that showcase the new DOTS animation package (com.unity.animation).
C#
399
star
76

MeasuredMaterialLibraryURP

HLSL
360
star
77

BatchBreakingCause

This project demonstrates different cases when Unity has to break a batch while rendering.
GLSL
350
star
78

UIToolkitUnityRoyaleRuntimeDemo

This is a sample project to introduce the use of UI Toolkit in Runtime
C#
347
star
79

MeasuredMaterialLibraryHDRP

C#
345
star
80

UnityDataTools

Experimental tools and libraries for reading and analyzing Unity data files.
C#
328
star
81

SynthDet

SynthDet - An end-to-end object detection pipeline using synthetic data
C#
324
star
82

EndlessRunnerSampleGame

Repository for the Endless Runner Game Sample (Trash Dash)
C#
324
star
83

HDRPRayTracingScenes

This repository contains a startup DXR project.
322
star
84

multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
C#
316
star
85

com.unity.services.samples.use-cases

The collection of samples in this repo use Unity Gaming Services in a Unity project to demonstrate live gaming operations.
C#
312
star
86

com.unity.probuilder

C#
305
star
87

XRLineRenderer

An XR-Focused line renderer that mimics rendering with 3d capsules while only using two quads worth of geometry.
C#
296
star
88

BuildReportInspector

Editor script which implements an inspector for the BuildReport class
C#
294
star
89

boat-attack-water

Package repo containing the water system created for the URP Boat Attack demo project.
C#
293
star
90

com.unity.demoteam.digital-human.sample

Character sample featuring the digital human from 'The Heretic'.
C#
292
star
91

marathon-envs

A set of high-dimensional continuous control environments for use with Unity ML-Agents Toolkit.
C#
279
star
92

articulations-robot-demo

C#
278
star
93

VRAlchemyLab

VR Demo project using HDRP and unity 2019.3
C#
276
star
94

NotificationsSamples

Sample project for Unity Notifications
C#
265
star
95

SkyboxPanoramicShader

Skybox shader for support of 360/180/cubemap video and static content
ShaderLab
265
star
96

PeopleSansPeople

Unity's privacy-preserving human-centric synthetic data generator
C#
261
star
97

Robotics-Object-Pose-Estimation

A complete end-to-end demonstration in which we collect training data in Unity and use that data to train a deep neural network to predict the pose of a cube. This model is then deployed in a simulated robotic pick-and-place task.
Python
250
star
98

ECS-Network-Racing-Sample

ECS multiplayer racing sample to showcase using Unity Entities and netcode with best practices
C#
248
star
99

2d-pixel-perfect

Pixel Perfect Camera
C#
244
star
100

ShaderGraph-Custom-Lighting

A sample project showcasing a simple method to calculate custom lighting inside of Shader Graph for the Lightweight Render Pipeline. Includes a sample toon shaded scene and example assets. Built for Unity 2019.2 .
Mathematica
244
star