public override bool ValueEquals(SerializedProperty prop) { Vector3 v3 = prop.vector3Value; //optional float field will take showMoreOptions into account! return(xField.ValueEquals(v3.x, approximate) && yField.ValueEquals(v3.y, approximate) && zField.ValueEquals(v3.z, approximate)); }
public override bool ValueEquals(SerializedProperty prop) { Rect v4 = prop.rectValue; return(xField.ValueEquals(v4.x, approximate) && yField.ValueEquals(v4.y, approximate) && wField.ValueEquals(v4.width, approximate) && hField.ValueEquals(v4.height, approximate)); // Debug.Log("[DynamicTypeRect] prop:"+prop.propertyPath); // return prop.rectValue == val; }
public override bool ValueEquals(SerializedProperty prop) { Vector2 v2 = prop.vector2Value; return(xField.ValueEquals(v2.x, approximate) && yField.ValueEquals(v2.y, approximate)); }
public override bool ValueEquals(SerializedProperty prop) { Quaternion q2 = prop.quaternionValue; return(xField.ValueEquals(q2.x, approximate) && yField.ValueEquals(q2.y, approximate) && zField.ValueEquals(q2.z, approximate) && wField.ValueEquals(q2.w, approximate)); }
public override bool ValueEquals(SerializedProperty prop) { Vector4 v4 = prop.vector4Value; return(xField.ValueEquals(v4.x, approximate) && yField.ValueEquals(v4.y, approximate) && zField.ValueEquals(v4.z, approximate) && wField.ValueEquals(v4.w, approximate)); }