Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 564 Bytes

README.md

File metadata and controls

35 lines (24 loc) · 564 Bytes

debug-helper

Debug helper in ui screen

Example

Code

public class ExampleLog : MonoBehaviour
{
    [SerializeField] private Button _testBtn;
    [SerializeField] private InputField _inputField;

    Debugger debug;

    void Start()
    {
        _testBtn.onClick.AddListener(OnBtnTestClicked);

        debug = Debugger.Instance;
    }

    void OnBtnTestClicked()
    {
        string txt = _inputField.text;

        debug.Log(txt);
    }
}

Result

example