Giter Club home page Giter Club logo

helper-unity's Introduction

Helper Tools

This tool is designed to make the development phase easier for Unity developers by providing various extensions, custom attributes and editor menu options.

Features

  • Transform Extensions: Additional functionality for transform operations.
  • Custom Attributes:
    • ButtonLUFI: Easily create buttons in the inspector.
    • ShowIf: Conditionally display fields in the inspector. You can check condition with bool, int, float and enum
    • ReadOnlyLUFI: Make fields read-only in the inspector.
  • Editor Menu Options:
    • Import/Remove assets
    • Remove Missing Scripts: Clean up all missing scripts from the scene with one click.
    • And Many More: Various other tools to enhance your Unity development experience.

Installation

To add Helper Tool, follow these steps:

  • Open your Unity project.
  • Go to Window > Package Manager.
  • Click on the + button and select Add package from git URL.
  • Enter the following GitHub link:
  https://github.com/lufias-69/helper-unity.git

Click Add and wait for the package to be imported.

Usage/Examples

public class Temp : MonoBehaviour
{
    [ReadOnlyLUFI]
    public int a = 123;

    public bool b;
    [ShowIf("b")] public int a;

    [ButtonLUFI]
    void MyFunc() { }
}
using Helper.Extension;
using UnityEngine;

public class Test : MonoBehaviour
{
    void OldWayTransform()
    {
        Vector3 pos = transform.position;
        pos.y = 5;
        transform.position = pos;
    }

    void NewWayTransform()
    {
        transform.SetPosY(5);
    }

    void OldWayChildKill()
    {
        for (int i = 0; i < transform.childCount; i++)
        {
            if (Application.isPlaying) Destroy(transform.GetChild(i).gameObject);
            else DestroyImmediate(transform.GetChild(i).gameObject);
        }
    }

    void NewWayChildKill()
    {
        transform.KillAllChild();
    }
}
using Helper.Waiter;
using UnityEngine;

public class Test : MonoBehaviour
{
    void DelayCallExample()
    {
        //execules now

        Waiter.Wait(5f, () =>
        {
            //will execute 5s later
        });
    }
}

Feedback

If you have any questions or feedback, feel free to reach out:

[email protected]

helper-unity's People

Contributors

lufias-69 avatar

Watchers

 avatar

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.