• Stars
    star
    147
  • Rank 250,153 (Top 5 %)
  • Language
    C#
  • License
    Other
  • Created about 8 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

Console for all your unity needs

License MIT

Beast Console

screen

Recently updated to remove any trace of UGUI. Now its pure IMGUI, with no additional clutter.

This project is possible because of the effort of amazing people at Cranium Software this project is based of SmartConsole https://github.com/CraniumSoftware/SmartConsole

BeastConsole is evolution (hopefully) of SmartConsole,

Console

  • Backend is created by folks at CraniumSoftware.
  • Use attributes to bind members
  • Register your own arbitrary commands/methods for any object(non monob as well) and provide parameters
  • Autocomplete
  • Both commands and variables support any number of subscribers, modify all objects at once.
  • Multiline
  • Suggestions
  • History
  • ConsoleUtility class containing methods to draw tables. (You can actually use ConsoleUtility pretty much by itself instead of Console class).

Usage

setup: Drop Console prefab in scene, change parameters to your liking.

Attributes:

Console uses reflection to find attributes, to speed up the whole process we should mark any class that has uses console attributes with [ConsoleParse] attribute.

[ConsoleParse]
public class AttributeTest : MonoBehaviour {

    [ConsoleVariable("testvar", "")]
    public float TestVariable = 5f;

    [ConsoleVariable("testproperty", "")]
    public bool TestPropertyVariable
    {
        set {
            Console.WriteLine("testproperty was set to: " + value);
        }
    }


    [ConsoleCommand("testMethod", "")]
	void TestMethod() {
        BeastConsole.Console.WriteLine("test method works");
    }

    [ConsoleCommand("testMethodWithParams", "")]
    public void TestMethodWithParams(float param1) {
        BeastConsole.Console.WriteLine("works :" + param1.ToString());

    }

    [ConsoleCommand("testMethodWith2Params", "")]
    public void TestMethodWith2Params(float param1, int param2) {
        BeastConsole.Console.WriteLine("works :" + (param1+ param2).ToString());

    }
}

Manual:

public float Volume = 1f;
Console.RegisterVariable<float>("Volume", "", x => Volume = x, this);

Console.RegisterCommand("MoveUp", "", this, MoveUp);
   
private void MoveUp(string[] val) {
   transform.position += new Vector3(0, System.Convert.ToSingle(val[1]) , 0);
}

Manual method requires you to unregister commands and variables when done with an object.

See Example folder for more examples.

More Repositories

1

BasicEventBus

Basic event bus for unity
C#
73
star
2

JECSu

Just another ecs for unity
C#
52
star
3

UnityEditorSnippets

Collection of different editor things that help with productivity
C#
34
star
4

URSA

[DEPRECATED] integrated ECS framework for Unity
C#
32
star
5

unity-file-extension

Shows file extension in 1 column project window.
C#
26
star
6

unity-minimap

Minimap made in UGUI for unity.
C#
23
star
7

Unity3d-Timers

Timer class with various behaviors (outdated, don't use)
C#
18
star
8

ObjectPaint

Tool for Unity that allows you to quickly bash objects in the scene with randomized parameters.
C#
15
star
9

UnityFrustum

An implementation of a frustum mesh and useful components.
C#
12
star
10

FullSave

Easy to use system for Unity3d that saves the whole gamestate.
C#
11
star
11

unity3d-safeTypeSerialization

Serialize type fields using ID attributes
C#
5
star
12

Unity-3d-Constraints

Constraint components used for rigging
C#
5
star
13

unity-fbx-importer

Simple parser that creates PODO with fbx nodes
C#
5
star
14

SaveSystem

save system for unity engine
C#
3
star
15

UnityLib_LCDScreen

A tool that setups a "screen" surface that mimics LCD screen.
GLSL
2
star
16

SmartToggle

unity3d
C#
2
star
17

unity-vertexColor-pbr-shader

A set of shaders for vertex paint material blending.
ShaderLab
2
star
18

Unity3d-CSVDatabase

Super simple database feeding from CSV files for unity engine.
C#
2
star
19

Hierarchy-Visualizer

A tool that shows you bones in the rig in game window, allowing you to select them quickly.
C#
2
star
20

unity3d-texture-packer

Texture packer example that you can customize to your liking
C#
1
star
21

PrototypeTextures

Prototype textures for unity 3d
1
star
22

unity3d-Skreen

A virtual low res screen kit.
C#
1
star
23

unity-reactive-var

very small lib only for reactive variables
C#
1
star