Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.1.1] - 2020-01-09

- Fixed the state of a the UiPresenter when loaded. Now the UiPresenters are always disabled when loaded

## [0.1.0] - 2020-01-05

- Initial submission for package distribution
5 changes: 4 additions & 1 deletion Runtime/UiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,13 @@ public async Task<UiPresenter> LoadUiAsync(Type type)
throw operation.OperationException;
}

var uiPresenter = Object.Instantiate(operation.Result).GetComponent<UiPresenter>();
// ReSharper disable once AccessToStaticMemberViaDerivedType
var uiPresenter = GameObject.Instantiate(operation.Result).GetComponent<UiPresenter>();

AddUi(config.Layer, uiPresenter, config.UiType);
Addressables.Release(operation);

uiPresenter.SetActive(false);

return uiPresenter;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.gamelovers.uiservice",
"displayName": "UiService",
"version": "0.1.0",
"version": "0.1.1",
"unity": "2019.3",
"description": "This package provides a service to help manage an Unity's, game UI.\nIt allows to open, close, load, unload and request any Ui Configured in the game.\nThe package provides a Ui Set that allows to group a set of Ui Presenters to help load, open and close multiple Uis at the same time.\n\nTo help configure the game's UI you need to create a UiConfigs Scriptable object by:\n- Right Click on the Project View > Create > ScriptableObjects > Configs > UiConfigs",
"dependencies": {
Expand Down