Git Product home page Git Product logo

com.mccdev260.gizmo-tool's Introduction

Unity Gizmo Drawer Tool

Visualizing waypoints for a moving platform and character look source.

Description

The Gizmo Drawer tool is a custom script that allows you to draw built in gizmos with customizable properties in the Unity scene. This script provides a versatile way to draw gizmos with a custom inspector to adjust their properties from within the editor.

Features

  • Use a custom Inspector to easily adjust gizmo properties directly in the Unity Editor.
  • Supports all gizmo types, except Frustum, as of Editor v2023.3
  • Customize the properties of each gizmo type, such as position, scale, color, and more.

Supported Types:

  • Sphere
  • Wire Sphere
  • Cube
  • Wire Cube
  • Mesh
  • Wire Mesh
  • Line
  • Line List
  • Line Strip
  • Icon Note: Icon file path is Assets/Gizmos by default.
  • GUI Texture

Installation

  1. Open Unity package manager window.
  2. From the '+' menu in the top left corner, select 'Add package from git URL...'
  3. Copy and paste this repository's URL into the URL field.

Usage

  1. Attach the GizmoDrawer script to a GameObject in your scene.
  2. In the Inspector, configure the gizmo properties based on your desired gizmo type.
  3. Toggle the drawOnSelectOnly option to control whether the gizmo should be drawn only when the GameObject is selected.
  4. Customize the gizmo's appearance by adjusting the color, size, scale, texture, and other relevant properties.
  5. To see the gizmos in the Scene view, ensure the Gizmos toggle is enabled at the top of the Scene view.

Example

To draw a sphere gizmo:

  1. Attach the GizmoDrawer script to a GameObject.
  2. Set the gizmoType to Sphere.
  3. Either manually set the gizmos origin via the exposed Vector3 originPos property, or reference a target Transform with the originTransfom property.
  4. Adjust the floatRadius to control the sphere's radius.
  5. Optionally, customize the gizmoColor to change the sphere's color.
  6. In the Scene view, the sphere gizmo will be drawn with the desired properties.

Contributing

Contributions are welcome! If you find any issues or want to enhance the project, feel free to fork this repository and submit pull requests.

License

This project is licensed under the MIT License. See the LICENSE file for details.

com.mccdev260.gizmo-tool's People

Contributors

mccdev260 avatar

Watchers

 avatar

com.mccdev260.gizmo-tool's Issues

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.