We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I have a function which will modify text of a TMP_Text on the scene. I want to print log on my TMP_Text after I press the button. Here is my code
[SerializeField] TMP_Text logText; [OverrideButtonEvent("Content/CustomEventButton")] void CustomOverrideFunction(Component component ) { var log = "trigger CustomOverrideFunction, this on click event is override via script"; logText.text = log; Debug.Log(log); }
The output would be exception since logText is null. Seems it cannot get any reference in same class in a function with OverrideButtonEvent.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I have a function which will modify text of a TMP_Text on the scene.
I want to print log on my TMP_Text after I press the button.
Here is my code
The output would be exception since logText is null.
Seems it cannot get any reference in same class in a function with OverrideButtonEvent.
The text was updated successfully, but these errors were encountered: