GithubHelp home page GithubHelp logo

lunaristudios / tsukisuite Goto Github PK

View Code? Open in Web Editor NEW
27.0 3.0 3.0 5.66 MB

A toolsuite created to make Unity development easier

License: MIT License

C# 99.99% Batchfile 0.01%
unity unity3d unity2d csharp unity-editor unity-asset unity-3d unity-plugin unity3d-plugin nuget-package

tsukisuite's Introduction

Tsuki Logo

TsukiSuite

TsukiSuite is an open source, free for commercial use suite of libraries created for making Unity development more pleasant.

Each library can be compared as a version of Google's Guava, but created for Unity

Currently, four of those exists, but more will be added as the need for them surface

  • Tsuki Runtime (Core libraries & algorithms)
  • Tsuki Entities (Gameplay Architecture)
  • Tsuki Editor (Editor specific libraries)
  • Tsuki Graphs (Graph Theory libraries)

Installation

  1. Install Unity 2020.3 or older
  2. Open Unity Package Manager.
  3. Click on the the '+' icon, add package from git URL, as paste the following url: https://github.com/LunariStudios/TsukiSuite.git#upm.
  4. Wait for the download and you are done! You can now freely use Tsuki

Features and examples

  • Collections
    List<int> list = new List<int>();
    if (list.IsEmpty()) {
        Debug.Log("Is empty!");
    }
    public struct Data {
        public string Name;
        public int Priority;
    }
    
    List<Data> data = PopulateListWithRandomData();
    Data withHighestPriority = data.MaxBy(d => d.Priority)
  • Colors
    Color color = Colors.RandomColor();
    Color newColor = color.SetHue(Mathf.Sin(Time.time));
    Color a = new Color(1, 0, 1, 1);
    ColorHSV b = a;
    ColorHSV colorHSV = new ColorHSV(0, 1, 1, 1);
    Color c = colorHSV;
  • Editor
    // Bonus: A list of hidden UnityEditor GUIStyles!
    var style = GUIStyles.Get(GUIStyles.box);
    var labelRect = position.GetLine(2); 
    EditorGUI.LabelField(labelRect, "I am on the third with the console info style!", style);
  • UI
    // No need to declare a copy of Graphic.color
    Text.SetAlpha(Mathf.Sin(Time.time));
    Text.SetHue(Mathf.Cos(Time.time));
  • And many more

Planned features

  • Code Generation tool using T4 templates.
  • Best practices knowledge base and bad practice detection.

tsukisuite's People

Contributors

brunosilvafreire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tsukisuite's Issues

Create Graph library

Planned:

  • Matrix-Based Graphs
  • Node-Based Graphs
  • Popular search and utility algorithms

TypeSelectorPopupContent brings abstract classes.

During the construction of the TypeSelectorPopupContent, it searches for all types that inherit from a specific type, but it also allows abstract classes, wich does not make sense, since this popup is used for creating instances of a type.
var types = new List<Type>(); foreach (var validType in validTypes) { types.AddRange(Types.GetAllTypesOf(validType)); }

Add documentation to GUIStyles keys.

The keys in GUIStyles were generated by checking all the available custom styles with EditorGUIUtility.GetBuiltinSkin(skin).customStyles, but what styles the keys correspond to are not exactly clear.

Many of them have prefixes, like: OL, IN, CN, PR. Which is not explicit, and while many others don't have prefixes and are readable (e.g. PaneOptions)., we don't know what they look like.

Help is wanted to document what each style correspond visually to in the editor.

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.