Fix AspectRatioLayoutElement to use its own transform.
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
using System.Collections.Generic;
|
||||
using Cryville.Common.Unity.UI;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Cryville.Common.Unity.UI;
|
||||
using System;
|
||||
|
||||
namespace Cryville.Crtr.Browsing {
|
||||
public class PropertyCategoryPanel : MonoBehaviour {
|
||||
@@ -37,7 +36,6 @@ namespace Cryville.Crtr.Browsing {
|
||||
var obj = GameObject.Instantiate<GameObject>(m_propertyPrefab);
|
||||
obj.transform.SetParent(transform, false);
|
||||
obj.GetComponent<PropertyPanel>().Load(prop, target);
|
||||
obj.GetComponent<AspectRatioLayoutElement>().ContainerTransform = (RectTransform)transform;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user