Discussions
Sign In
Forum rules
- please read before posting.
Cannot convert bool to AC.Bool?
ProgrammingPanda
January 2018
in
Technical Q&A
So I was creating a custom action when this occurred on this line:
newState
=
AssignBoolean
(
parameters
,
parameterID2
,
newState
)
;
Any idea captain? Thanks
Comments
ChrisIceBox
January 2018
edited January 2018
AssignBoolean returns an BoolValue enum, which has the values True or False. Make newState a BoolValue type, and use an enum to expose its value in the GUI:
newState = (BoolValue) EditorGUILayout.EnumPopup ("Value:", newState);
ProgrammingPanda
January 2018
Oh, okay thanks captain!
ProgrammingPanda
January 2018
Oh, okay thanks captain!
Sign In
or
Register
to comment.
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Quick Links
Categories
Recent Discussions
Categories
12K
All Categories
63
Official news
1.5K
Engine development
10.1K
Technical Q&A
319
Games showcase
149
Extending the editor
222
Adventure talk
Welcome to the official forum for Adventure Creator.
Forum rules
Main website
Store page
Community wiki
Community Discord
Powered by Vanilla
Comments
newState = (BoolValue) EditorGUILayout.EnumPopup ("Value:", newState);