Search Issue Tracker

In Progress

Fix In Review for 1.0.6

Votes

0

Found in [Package]

1.0.5

Issue ID

BEHAVB-89

Regression

No

Setting enum values in blackboard not respecting assigned values.

Package: Unity Behavior

-

*Steps to reproduce:*

1. In a behavior graph create a new enum via the blackboard menu. Create a few fields but assign bitflag values (1, 2, 4, 8).

enum EEnum
{
None=0,
A=1,
B=2,
C=4,
D=8
};

2. In SetBlackboardVariableValueCommandHandler put a breakpoint in Process and set the blackboard value to A, B, C or D.

3. Observe that command.Value is the index of the element in the enum value as it is the value of the item in the dropdown. This is immediately written to the variable and so does not represent the value assigned.

\\
*Reproducible with versions:* All

*Not reproducible with versions:* 

*Can’t test with versions:* 

\\
*Tested on (OS):* N/A

\\
*Notes:*
*  

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.