SerializeField

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Arturicon
Posts: 12
Joined: Mon Mar 11, 2024 2:52 pm

SerializeField

Post by Arturicon »

I struggle with adding Serializable int field to Dialogue Entry. I suppose i need to change something in unity editor but i'm not so good in it. Can you hint how i can do this?
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: SerializeField

Post by Tony Li »

Hi,

I don't understand what you want to do. Can you please provide more details / code / screenshots?
Arturicon
Posts: 12
Joined: Mon Mar 11, 2024 2:52 pm

Re: SerializeField

Post by Arturicon »

I mean i want to add field to dialog entry to see it at inspector. I added field to dialog entry script but it doesn't work.
Attachments
Screenshot 2024-05-01 184844.png
Screenshot 2024-05-01 184844.png (29.37 KiB) Viewed 252 times
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: SerializeField

Post by Tony Li »

Hi,

If you've added a new field, it will be in the All Fields foldout.

If you added it through the Templates tab, you can tick the Main checkbox to see it in the main section of the inspector.
Post Reply