/UnityPackage-SonicScrewdriver

A utility and productivity package that aims to make your life easier.

Primary LanguageC#MIT LicenseMIT

Sonic Screwdriver

Sonic Screwdriver is a utility and productivity package for Unity that aims to make your life easier.

Current Features

  • Auto-collapse inspectors
    Automatically collapses all inspectors in the inspector window.
  • Watch
    Displays a debug canvas on screen for fields marked with the [Watch] Attribute. Supports both screen-space and world-space:

Watch Feature

[Watch] Attribute

image

public class Box : MonoBehaviour
{
    public Color color;
    
    [Watch] private Vector3 position;
    [Watch] private string colorHex;

    private void Awake()
    {
        GetComponent<Renderer>().material.color = color;

        colorHex = ColorUtility.ToHtmlStringRGB(color);
    }

    private void Update()
    {
        position = transform.position;
    }
}
public class ThirdPersonCharacter : MonoBehaviour
{
	// ...

	[Watch] bool m_IsGrounded;
	[Watch] float m_TurnAmount;
	[Watch] bool m_Crouching;

	// ...
}

[WatchOptions] Attribute

image

[WatchOptions(WatchOptionsAttribute.DisplayType.WorldSpace)]
public class Box : MonoBehaviour {
  // ...
}