Skip to content

Commit

Permalink
view.GetObject() returns null #18
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivashenko committed Jul 29, 2024
1 parent 34c376a commit 652d6ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Assets/Plugins/StatefulUI/Runtime/Core/StatefulComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ private ButtonReference GetButton(int role)
return null;
}

private GameObject GetObject(int role)
private ObjectReference GetObject(int role)
{
for (var i = 0; i < Objects.Count; i++)
{
if (Objects[i].Role == role)
{
return Objects[i].Object;
return Objects[i];
}
}

Expand Down
4 changes: 2 additions & 2 deletions Assets/Plugins/StatefulUI/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "dmitry-ivashenko.statefului",
"displayName": "StatefulUI",
"version": "1.0.5",
"version": "1.0.6",
"unity": "2021.3",
"description": "Stateful UI - A library for structured state-based UI development in Unity",
"keywords": ["UI"],
"license": "MIT",
"documentationUrl": "https://github.com/dmitry-ivashenko/StatefulUI/blob/main/README.md",
"changelogUrl": "https://github.com/dmitry-ivashenko/StatefulUI/releases",
"licensesUrl": "https://github.com/dmitry-ivashenko/StatefulUI/blob/main/LICENSE"
}
}

0 comments on commit 652d6ab

Please sign in to comment.