0
Fixed (Unreleased)

Failure to instantly update widget of generic member units

MegaMiley 9 months ago updated by Lazlo Bonin (Lead Developer) 7 months ago 4 1 duplicate

When trying to use GetComponent<T>() inside a graph it shortly shows it as working but then after a simple refresh loses the type that was selected in the first place and thus breaking the script. It seems to happen with multiple methods that use a Template as their parameter/type.

I've uploaded the warnings I got right around the time this happened 

Logs

Bolt Version:
2.0 Alpha 7
Unity Version:
2018.4.14f1
Platform(s):
Windows 10
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2

Duplicates 1

How it looks inside the graph: 

When running this I get the error 

ArgumentException: Cannot create an instance of Ludiq.InstanceFunctionInvoker`2[UnityEngine.Component,T] because Type.ContainsGenericParameters is true.

Meaning these generics can't be used, they should probably be turned off in the menu if that's the case to avoid confusion

Working on Fix

Hi MegaMiley,

Thanks for the report, working on a fix.

+1
Fixed (Unreleased)

This will be fixed in the next version, thanks everyone.