Closed igrir closed 8 years ago
Odd, tested that case as well while putting in failsafe for enum. That was the error the editor was getting when the enum is deleted or changed in some fashion.
The latest pull should only give you this message: "Parameters have been changed, from code? Attempting to restore data."
Yep! Yes it does if I only deleted the method (and if I deleted one of the enum it would change to other available enum). But this error shows up if I deleted both the enum and the method.
Ah I didn't realize you have to remove both function and enum at the same time. I've added another by-pass to an exception when a type is not found in code (these are fine to ignore, since a log is given later). See if it works now.
Event can be fragile if not careful, hence why I decided to add Trigger track a while ago for a more safer alternative. But Event still allows for less error (mistypes) during production.
I've just tried it again and here's some of errors I've found:
Assets/MateAnimator/Scripts/Classes/AMEventParameter.cs(204,58): error CS0103: The name `endInd' does not exist in the current context
Assets/MateAnimator/Scripts/Classes/AMEventParameter.cs(204,45): error CS1502: The best overloaded method match for `string.Substring(int, int)' has some invalid arguments
Assets/MateAnimator/Scripts/Classes/AMEventParameter.cs(204,45): error CS1503: Argument `#2' cannot convert `object' expression to type `int'
Assets/MateAnimator/Scripts/Classes/AMEventParameter.cs(208,59): error CS1502: The best overloaded method match for `System.Reflection.Assembly.Load(string)' has some invalid arguments
Assets/MateAnimator/Scripts/Classes/AMEventParameter.cs(208,59): error CS1503: Argument `#1' cannot convert `object' expression to type `string'
Assets/MateAnimator/Scripts/Classes/AMEventParameter.cs(211,33): error CS1501: No overload for method `GetType' takes `1' arguments
Cheers!
Oops! Missed that on merge, should compile now.
Did the enum supports pruned? But it's great anyway and safe. I'll closed this.
Step to reproduce:
If I re-added the method, the cutscene editor works again. This issue wasn't happened if I use method without enum paramter in it.
Here's the error of the issue: