Skip to content

How to show a property value by text with unity

kytooooo edited this page Jun 30, 2019 · 6 revisions

How to show a property value by text with unity?

https://github.com/ketoo/NFClient/blob/master/UnitySDK/Assets/NFrame/UI/UIBind/NFPropertyView.cs

Drag the script "NFPropertyView.cs" too the text widget as a component.

https://raw.githubusercontent.com/wiki/ketoo/NoahGameFrame/images/client/propertyBind.png

"Group" means the property belongs to a group, else belong to the player.

"Original" means the text will show the data as a string.

"Gold" is the property's name, you can change as any property you want.