The current page is translated by a machine, information may be missing or inaccurate. If you encounter any problems or have questions, please submit an ISSUE.
- string
- number
- boolean
- bigint
- UnityEngine.Vector2
- UnityEngine.Vector3
- UnityEngine.Color
- UnityEngine.Color32
- UnityEngine.Object and its subtypes
Using UnityEngine.UI.Button as an example:
- Convert to a Wrapper component
- Add a Wrapper event
- Start the Services service, then select a method on the TsComponent component
Example Scene: projects/Assets/Samples/06_UGUIEvents
Example TypeScript Code: projects/TsProject/src/samples/06_UGUIEvents.ts