Yarn2: Prevent recreating actors when importing?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
kko828
Posts: 17
Joined: Sun Nov 05, 2023 1:59 am

Yarn2: Prevent recreating actors when importing?

Post by kko828 »

Hi, Thank you for your continued support.
I'm making a VN using Yarn2 and your system.

Is there a way to automatically set an Actor's Portrait and Display Name from a script?
Currently, if you create an Actor with Dialogue Editor and then import a Yarn file, all settings of the Actor will be overwritten. Than means, Every time you update Yarn, you need to manually reset the Actor's Portrait and Display Name, which is inconvenient.

Alternatively, I would be really happy if you could add some option to the Yarn Importer like "Do not overwrite Actor" or something.
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn2: Prevent recreating actors when importing?

Post by Tony Li »

Hi,

Good idea. I'll add a "Do Not Overwrite Actor" option in the next release.

In the meantime, you can add a Dialogue Actor component to the actor's GameObject. (Create an empty GameObject if it doesn't already have one.) Then set the actor's name and portrait sprite there.
kko828
Posts: 17
Joined: Sun Nov 05, 2023 1:59 am

Re: Yarn2: Prevent recreating actors when importing?

Post by kko828 »

Hi, I'm glad to hear that! Thanks so much. ;)
I want to set multiple stripes so I need to set them to Dialog Database instead of Dialogue Actor component.
Post Reply