Reproduce Step:
1. Write a C# code for a custom Conditional, who has a enum field.
2. In Behavior Designer Editor, drag CustomConditional into the panel. Then set My Enum field value to Enum2.
3. Modify CustomConditional C# code, add a space at last line ( to let unity build the code )
4. My Enum field was restored to default value.
Expection:
My Enum stays in Enum 2.
Or I have to search all the Custom Conditionals in all Behavior Trees, and set them back to Enum 2 one by one, by hand...
1. Write a C# code for a custom Conditional, who has a enum field.
C#:
public enum MyEnum {
Enum0,
Enum1,
Enum2
}
public class CustomConditional : Conditional
{
public MyEnum myEnum;
}
2. In Behavior Designer Editor, drag CustomConditional into the panel. Then set My Enum field value to Enum2.
3. Modify CustomConditional C# code, add a space at last line ( to let unity build the code )
4. My Enum field was restored to default value.
Expection:
My Enum stays in Enum 2.
Or I have to search all the Custom Conditionals in all Behavior Trees, and set them back to Enum 2 one by one, by hand...
Last edited: