Skip to content

Commit

Permalink
Add ImGui checkbox for toggling drawTexture property
Browse files Browse the repository at this point in the history
Introduced a new ImGui checkbox in the MyGUI::render() function
to toggle the drawTexture boolean property of the selected
game object. This enhances the GUI by allowing users to
manipulate the game object's properties directly through the
interface.
  • Loading branch information
Noelswag committed Oct 30, 2024
1 parent 99174ea commit 67542a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Maker/Editor/MyGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ void MyGUI::render() {
selectedGameObject->_transform.SetRotation(glm::vec3(rotationArray[0], rotationArray[1], rotationArray[2]));
}

if (ImGui::Checkbox("Draw Texture", &selectedGameObject->drawTexture)) {

}
}
else {
ImGui::Text("No GameObject selected.");
Expand Down

0 comments on commit 67542a8

Please sign in to comment.