Skip to content

Commit 62277ec

Browse files
Merge pull request #2 from CoderGamester/develop
0.1.1
2 parents 24efd6a + 43fb2d3 commit 62277ec

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this package will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.1.1] - 2020-01-09
8+
9+
- Fixed the state of a the UiPresenter when loaded. Now the UiPresenters are always disabled when loaded
10+
711
## [0.1.0] - 2020-01-05
812

913
- Initial submission for package distribution

Runtime/UiService.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,13 @@ public async Task<UiPresenter> LoadUiAsync(Type type)
328328
throw operation.OperationException;
329329
}
330330

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

333334
AddUi(config.Layer, uiPresenter, config.UiType);
334335
Addressables.Release(operation);
336+
337+
uiPresenter.SetActive(false);
335338

336339
return uiPresenter;
337340
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.gamelovers.uiservice",
33
"displayName": "UiService",
4-
"version": "0.1.0",
4+
"version": "0.1.1",
55
"unity": "2019.3",
66
"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",
77
"dependencies": {

0 commit comments

Comments
 (0)