Skip to content

Commit 635770d

Browse files
committed
复UIFrame.Instantiate实例化的UI没有设置父物节点的问题
1 parent 24dff63 commit 635770d

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Changelog
2+
## [1.1.5] - 2024-01-27
3+
### Fixed
4+
- 修复UIFrame.Instantiate实例化的UI没有设置父物节点的问题
5+
26
## [1.1.4] - 2024-01-24
37
### Fixed
48
- 修复Release中的错误

Runtime/Core/UIFrame.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ private static async Task<GameObject> InstantiateAsync(GameObject prefab, Transf
616616
var parentUI = GetParent(item);
617617
if (parentUI == null) continue;
618618
parentUI.Children.Add(item);
619+
item.Parent = parentUI;
619620
}
620621
foreach (var item in uibases)
621622
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.feif.uiframe",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"displayName": "UIFrame",
55
"description": "异步UI框架",
66
"unity": "2019.4",

0 commit comments

Comments
 (0)