Skip to content

brunomikoski/Framework-Autohook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

Original idea from @LotteMakesStuff: https://gist.github.com/LotteMakesStuff/d6a9a4944fc667e557083108606b7d22

Updates

  • Created as a repository so can be used as submodule in projects
  • Added support for private / serialized fiels
  • Added drawing type after the hook (Hidden, Disabled, Visible)
  • Added context to the component (Self, Child, Parent)

heres a tiny little example of how to use it

public class AutohookTest : MonoBehaviour
{
    [Autohook] // <-- yeah its that easy!
    public Rigidbody rigidbody;
}
public class AutohookTest : MonoBehaviour
{
    [Autohook (Context.Self, Visility.Disabled] // <-- yeah its that easy!
    public Rigidbody rigidbody;
}

You can watch a demo of this in action here https://youtu.be/faVt09NGzws

-> Support the original creator ko-fi