Skip to content

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

License

Notifications You must be signed in to change notification settings

mrbeardy/UnityPackage-SonicScrewdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 {
  // ...
}

Releases

No releases published

Packages

No packages published

Languages