Glist.itemextender is used in the hot update ilruntime, and the unity editor will run with an error
KeyNotFoundException: Cannot find convertor for FairyGUI.ListItemProvider
Add the following code to the void registdelegate() function of ilruntimewrapper. CS in the unity project
appdomain.DelegateManager.RegisterDelegateConvertor<FairyGUI.ListItemProvider>((act) =>
{
return new FairyGUI.ListItemProvider((index) =>
{
return ((Func<System.Int32, System.String>)act)(index);
});
});
Unity editor running error, error prompt
KeyNotFoundException: Cannot find Delegate Adapter for:uicreatetroops.GetListItemResource(Int32 index), Please add following code:
appdomain.DelegateManager.RegisterFunctionDelegate<System.Int32, System.String>();
Add the following code to the void registdelegate() function of ilruntimewrapper. CS in the unity project
appdomain.DelegateManager.RegisterFunctionDelegate<System.Int32, System.String>();
Make sure it is
Add the following code to the void registdelegate() function of ilruntimewrapper. CS in the unity project
...
void RegistDelegate()
{
...
appdomain.DelegateManager.RegisterDelegateConvertor<FairyGUI.ListItemProvider>((act) =>
{
return new FairyGUI.ListItemProvider((index) =>
{
return ((System.Func<System.Int32, System.String>)act)(index);
});
});
appdomain.DelegateManager.RegisterFunctionDelegate<System.Int32, System.String>();
...
}
...
Hot update ilruntime automatic error generation code…
Read More:
- The solution of eclipse code automatic prompt function
- Hot Swap failed:add method not implemented
- Eclipse automatic prompt setting method and optimization
- Solve the problem that Windows 7 cannot be updated automatically_ Prompt error code 80246008
- MySQL failed to add foreign key: SQL 1452 cannot add or update a child row:a foreign key constraint fails
- Add Samba user prompt failed to add entry for user
- Add samba user prompt Failed to add entry for user.
- The garbled problem of hot deployment in nginx
- Hot code replace failed error in eclipse
- Hot code replace failed in eclipse compilation
- git clone prompt error: RPC failed result=22, HTTP code = 404 problem
- Successfully solved the problem that visual studio code could not go to the definition, and there was no mouse prompt
- WARNING:tensorflow:`add_update` `inputs` kwarg has been deprecated.
- Failed to initialize nvml driver / library version mismatch due to automatic update of NVIDIA driver
- Mysql error 1452 – Cannot add or update a child row: a foreign key constraint fails
- [error record] the tinker hot fix example runs with an error (patch receive fail: / storage / simulated / 0 / patch)_ signed_ 7zip.apk, code: -2)
- Solution to error 1452: cannot add or update a child row: a foreign key constraint failures in MySQL
- Serverlet: How to Add, Delete, Modify and Query item code
- Altium designer failed to add class member problem
- Windows update has an error code_ 800700C1