mirror of https://github.com/tuyoogame/YooAsset
Compare commits
No commits in common. "0c36e458f710655e1f2f2e805508a4afd1ad95c7" and "151e978e5b3fb2df20a2ef96c01b6c1c0a96b230" have entirely different histories.
0c36e458f7
...
151e978e5b
|
@ -6,7 +6,7 @@ namespace YooAsset.Editor
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 检视界面的UI元素容器(UIElements元素)
|
/// 检视界面的UI元素容器(UIElements元素)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public object Containner { private set; get; }
|
public object Containner;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 检视界面宽度
|
/// 检视界面宽度
|
||||||
|
@ -22,24 +22,5 @@ namespace YooAsset.Editor
|
||||||
/// 检视界面最大宽度
|
/// 检视界面最大宽度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int MaxWidth = 250;
|
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,7 +177,8 @@ public class TextureSchema : ScannerSchema
|
||||||
});
|
});
|
||||||
container.Add(maxHeightField);
|
container.Add(maxHeightField);
|
||||||
|
|
||||||
SchemaInspector inspector = new SchemaInspector(container);
|
SchemaInspector inspector = new SchemaInspector();
|
||||||
|
inspector.Containner = container;
|
||||||
return inspector;
|
return inspector;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue