Class VS_EditorUtility
Inheritance
System.Object
VS_EditorUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Macaca.ViewSystem.Editor.dll
Syntax
public class VS_EditorUtility
Methods
|
Improve this Doc
View Source
CalculateBoundsRectFromRects(IEnumerable<Rect>, Vector2)
Declaration
public static Rect CalculateBoundsRectFromRects(IEnumerable<Rect> rects, Vector2 padding)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<UnityEngine.Rect> |
rects |
|
UnityEngine.Vector2 |
padding |
|
Returns
Type |
Description |
UnityEngine.Rect |
|
|
Improve this Doc
View Source
GetPropertyType(SerializedProperty)
Declaration
public static Type GetPropertyType(SerializedProperty property)
Parameters
Type |
Name |
Description |
UnityEditor.SerializedProperty |
property |
|
Returns
Type |
Description |
System.Type |
|
|
Improve this Doc
View Source
IsPropertyNeedIgnore(SerializedProperty)
Declaration
public static bool IsPropertyNeedIgnore(SerializedProperty prop)
Parameters
Type |
Name |
Description |
UnityEditor.SerializedProperty |
prop |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static void SetAnchorSmart(ViewSystemRectTransformData vs_rect, RectTransform rect, float value, int axis, bool isMax, bool smart)
Parameters
Type |
Name |
Description |
ViewSystemRectTransformData |
vs_rect |
|
UnityEngine.RectTransform |
rect |
|
System.Single |
value |
|
System.Int32 |
axis |
|
System.Boolean |
isMax |
|
System.Boolean |
smart |
|
|
Improve this Doc
View Source
Declaration
public static void SetAnchorSmart(ViewSystemRectTransformData vs_rect, RectTransform rect, float value, int axis, bool isMax, bool smart, bool enforceExactValue)
Parameters
Type |
Name |
Description |
ViewSystemRectTransformData |
vs_rect |
|
UnityEngine.RectTransform |
rect |
|
System.Single |
value |
|
System.Int32 |
axis |
|
System.Boolean |
isMax |
|
System.Boolean |
smart |
|
System.Boolean |
enforceExactValue |
|
|
Improve this Doc
View Source
Declaration
public static void SetAnchorSmart(ViewSystemRectTransformData vs_rect, RectTransform rect, float value, int axis, bool isMax, bool smart, bool enforceExactValue, bool enforceMinNoLargerThanMax, bool moveTogether)
Parameters
Type |
Name |
Description |
ViewSystemRectTransformData |
vs_rect |
|
UnityEngine.RectTransform |
rect |
|
System.Single |
value |
|
System.Int32 |
axis |
|
System.Boolean |
isMax |
|
System.Boolean |
smart |
|
System.Boolean |
enforceExactValue |
|
System.Boolean |
enforceMinNoLargerThanMax |
|
System.Boolean |
moveTogether |
|
|
Improve this Doc
View Source
SmartOverrideField(Rect, SerializedProperty, PropertyOverride, out Single)
Declaration
public static bool SmartOverrideField(Rect rect, SerializedProperty Target, PropertyOverride overProperty, out float lineHeight)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
rect |
|
UnityEditor.SerializedProperty |
Target |
|
PropertyOverride |
overProperty |
|
System.Single |
lineHeight |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SmartOverrideField(Rect, GUIContent, PropertyOverride, out Single)
Declaration
public static bool SmartOverrideField(Rect rect, GUIContent content, PropertyOverride overProperty, out float lineHeight)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
rect |
|
UnityEngine.GUIContent |
content |
|
PropertyOverride |
overProperty |
|
System.Single |
lineHeight |
|
Returns
Type |
Description |
System.Boolean |
|