Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeginPopupModal() cannot receive null as its second parameter #2

Open
MarcosCobena opened this issue Mar 8, 2023 · 0 comments
Open

Comments

@MarcosCobena
Copy link

MarcosCobena commented Mar 8, 2023

Steps to reproduce

  1. Create/open an Evergine project with support to ImGui
  2. In its source code, type: ImGui.BeginPopupModal("foo", null) (actually, any method receiving ref bool)

What I expect

To allow passing a null reference to indicate I am not insterested in preserving state in any variable/field.

What I get

The compiler does not allow, given the method signature, to pass null in any form. I have tried as well to declare a bool? field but the compiler stops as well, nor I have found any casting or similar.

Versions

ImGui.Net: 1.78.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant