Fixed (Unreleased)

Failure to instantly update widget of generic member units

MegaMiley 2 years ago updated by Lazlo Bonin (Lead Developer) 2 years 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 


Bolt Version:
2.0 Alpha 7
Unity Version:
Windows 10
Scripting Backend:
.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.

Fixed (Unreleased)

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