Page 1 of 1

Yarn2: Prevent recreating actors when importing?

Posted: Sat Nov 18, 2023 8:58 am
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.

Re: Yarn2: Prevent recreating actors when importing?

Posted: Sat Nov 18, 2023 2:19 pm
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.

Re: Yarn2: Prevent recreating actors when importing?

Posted: Sun Nov 19, 2023 9:07 am
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.