mirror of https://github.com/tuyoogame/YooAsset
Compare commits
2 Commits
151e978e5b
...
0c36e458f7
Author | SHA1 | Date |
---|---|---|
|
0c36e458f7 | |
|
b2fa52e4c4 |
|
@ -6,7 +6,7 @@ namespace YooAsset.Editor
|
|||
/// <summary>
|
||||
/// 检视界面的UI元素容器(UIElements元素)
|
||||
/// </summary>
|
||||
public object Containner;
|
||||
public object Containner { private set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 检视界面宽度
|
||||
|
@ -22,5 +22,24 @@ namespace YooAsset.Editor
|
|||
/// 检视界面最大宽度
|
||||
/// </summary>
|
||||
public int MaxWidth = 250;
|
||||
|
||||
public SchemaInspector(object containner)
|
||||
{
|
||||
Containner = containner;
|
||||
}
|
||||
public SchemaInspector(object containner, int width)
|
||||
{
|
||||
Containner = containner;
|
||||
Width = width;
|
||||
MinWidth = width;
|
||||
MaxWidth = width;
|
||||
}
|
||||
public SchemaInspector(object containner, int width, int minWidth, int maxWidth)
|
||||
{
|
||||
Containner = containner;
|
||||
Width = width;
|
||||
MinWidth = minWidth;
|
||||
MaxWidth = maxWidth;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -177,8 +177,7 @@ public class TextureSchema : ScannerSchema
|
|||
});
|
||||
container.Add(maxHeightField);
|
||||
|
||||
SchemaInspector inspector = new SchemaInspector();
|
||||
inspector.Containner = container;
|
||||
SchemaInspector inspector = new SchemaInspector(container);
|
||||
return inspector;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue