0
Answered

Why am I suddenly getting this error? Who's lazlo?

cjosewski 2 years ago updated by Lazlo Bonin (Lead Developer) 1 year ago 5

InvalidConversionException: Cannot convert from 'UnityEngine.GameObject' to 'System.String'.

Ludiq.ConversionUtility.Convert (System.Object value, System.Type type, ConversionType conversionType) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/ConversionUtility.cs:472)

Ludiq.ConversionUtility.Convert (System.Object value, System.Type type) (at C:/Users/lazlo/Projects/Bolt1/Package/Ludiq.Core/Runtime/Reflection/ConversionUtility.cs:215)

Bolt.Flow.GetValue (Bolt.ValueInput input, System.Type type)

Bolt.Flow.GetValue[String] (Bolt.ValueInput input)

Bolt.GetVariable.Get (Bolt.Flow flow)

Bolt.Unit+<>c__DisplayClass86_0`1[System.Object].b__0 (Bolt.Flow recursion)

Bolt.Flow.GetValueDelegate (Bolt.ValueOutput output)

Bolt Version:
1.4
Unity Version:
2018.3.5f1
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Your getting that error cause your trying to feed a gameobject into something that takes a string.

Lazlo made Bolt.

Answered

Sparkz is right! ;) Due to how debug files work for DLL plugins like Bolt, you see my original project path even on your computer when there's a bug, hence the confusion.

As for the error, you are indeed passing a GameObject to a String. If you show us your graph, we could help you figure out why that happens.

I'm good.  I solved it.  It was the lazlo path stuff that was confusing me at first.

Thanks!

I am getting this and it's a new Unity Project. This is part of the setup wizard for Documentation. I think you have a bug for first time setup with current version

Hi Wayne, this seems like a separate issue but I see you opened another thread for it, I'll answer there!