Page 1 of 1

[Solved] Unity timeline error. gameobject input ?

Posted: Tue Sep 17, 2019 11:15 am
by 8uddie
Hello!, I apologize in advance if this have been answered before,

I was following the tutorial on integrating the Dialogue system with the cinemachine timeline;
(Dialogue System for Unity 2.x - Cutscene Sequences - Part 5: Unity Timeline )


Then, I ran into a problem when added 'Start conversation clip' in track. It came up with yellow error marker and some infinite added objects error appear with "Unity Exception invalid type" error. as screenshot below;

Image

Image

I figured it might have to do with GameObject input which in the video haven't been clear on what to use
I tried using 'Dialogue Actor' game object or the 'Dialogue System trigger' one .but doesnt seem to work

Am i missing something ?

Re: Unity timeline error. gameobject input ?

Posted: Tue Sep 17, 2019 11:36 am
by Tony Li
Hi,

What versions of Unity and the Dialogue System are you using?

Re: Unity timeline error. gameobject input ?

Posted: Tue Sep 17, 2019 12:46 pm
by 8uddie
I think it's the latest,
Unity 2019.2.5f1 and Dialogue system manager 2.2.0

Re: Unity timeline error. gameobject input ?

Posted: Tue Sep 17, 2019 2:33 pm
by Tony Li
Okay, I'll check it. Did you enable Timeline support? (Tools > Pixel Crushers > Dialogue System > Welcome Window)

Re: Unity timeline error. gameobject input ?

Posted: Tue Sep 17, 2019 3:42 pm
by 8uddie
Yup. both USE_TIMELINE and USE_CINEMACHINE

Re: Unity timeline error. gameobject input ?

Posted: Tue Sep 17, 2019 9:05 pm
by Tony Li
Hi,

I think this can happen if you've upgraded from an earlier version of the Dialogue System to 2.2.0. Unity has issues with compiling after adding new Scripting Define Symbols when some files are in Plugins (where they're supposed for be for Asset Store assets) that depend on Package Manager packages such as Timeline.

Please find the Dialogue System's Timeline scripts, which will be in:
Plugins / Pixel Crushers / Dialogue System / Scripts / Timeline
or:
Plugins / Pixel Crushers / Dialogue System / Scripts / Options / Timeline

Right-click on that folder and select Reimport.

Then do the same for the Timeline scripts in the Wrappers folder structure.

I think that should fix it.

Re: Unity timeline error. gameobject input ?

Posted: Wed Sep 18, 2019 12:21 pm
by 8uddie
Yea that absolutely did it!
Thank you so much , I probably should have try reimport first to see if that fix it before post it here :P

much Appreciated !

Re: [Solved] Unity timeline error. gameobject input ?

Posted: Wed Sep 18, 2019 1:31 pm
by Tony Li
Glad to help! Sorry about the trouble there. Unity's still in the process of introducing the Package Manager system, and it still has a few quirks like this.