Struct Value
The value type itself, stored in the GraphInstance's value array. Union of types
Syntax
[Serializable]
public struct Value : IEquatable<Value>
Fields
Type
Declaration
Field Value
Properties
Bool
Declaration
public bool Bool { get; set; }
Property Value
Color
Declaration
public Color Color { get; set; }
Property Value
EnumValue
Declaration
public readonly int EnumValue { get; }
Property Value
Float
Declaration
public float Float { get; set; }
Property Value
Float2
Declaration
public Vector2 Float2 { get; set; }
Property Value
Float3
Declaration
public Vector3 Float3 { get; set; }
Property Value
Float4
Declaration
public Vector4 Float4 { get; set; }
Property Value
Handle
Declaration
public readonly GCHandle Handle { get; }
Property Value
Int
Declaration
public int Int { get; set; }
Property Value
Quaternion
Declaration
public Quaternion Quaternion { get; set; }
Property Value
Methods
Box()
Declaration
Returns
Box(Type)
Declaration
public object Box(Type type)
Parameters
Type |
Name |
Description |
Type |
type |
|
Returns
CanConvert(ValueType, ValueType, Boolean)
Declaration
public static bool CanConvert(ValueType from, ValueType to, bool allowFloatToIntRounding)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Equals(Value)
Declaration
public bool Equals(Value other)
Parameters
Type |
Name |
Description |
Value |
other |
|
Returns
Equals(Value, Value)
Declaration
public static bool Equals(Value a, Value b)
Parameters
Returns
FromObject(Object)
Declaration
public static Value FromObject(object o)
Parameters
Type |
Name |
Description |
Object |
o |
|
Returns
GetBoxedEnum()
Declaration
public Enum GetBoxedEnum()
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Object(Type)
Declaration
public object Object(Type t)
Parameters
Type |
Name |
Description |
Type |
t |
|
Returns
Object<T>()
Declaration
public T Object<T>()
where T : class
Returns
Type Parameters
SetEnumValue(Enum)
Declaration
public void SetEnumValue(Enum value)
Parameters
Type |
Name |
Description |
Enum |
value |
|
SetEnumValue<T>(T)
Declaration
public void SetEnumValue<T>(T value)
where T : struct, Enum
Parameters
Type |
Name |
Description |
T |
value |
|
Type Parameters
SetObject(Object)
Declaration
public Value SetObject(object value)
Parameters
Type |
Name |
Description |
Object |
value |
|
Returns
ToPrettyString()
Declaration
public string ToPrettyString()
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
GreaterThan(Value, Value)
Declaration
public static bool operator>(Value a, Value b)
Parameters
Returns
GreaterThanOrEqual(Value, Value)
Declaration
public static bool operator >=(Value a, Value b)
Parameters
Returns
Implicit(Boolean to Value)
Declaration
public static implicit operator Value(bool f)
Parameters
Returns
Implicit(Int32 to Value)
Declaration
public static implicit operator Value(int f)
Parameters
Type |
Name |
Description |
Int32 |
f |
|
Returns
Implicit(Single to Value)
Declaration
public static implicit operator Value(float f)
Parameters
Type |
Name |
Description |
Single |
f |
|
Returns
Implicit(Color to Value)
Declaration
public static implicit operator Value(Color f)
Parameters
Type |
Name |
Description |
Color |
f |
|
Returns
Implicit(Quaternion to Value)
Declaration
public static implicit operator Value(Quaternion f)
Parameters
Returns
Implicit(Vector2 to Value)
Declaration
public static implicit operator Value(Vector2 f)
Parameters
Returns
Implicit(Vector3 to Value)
Declaration
public static implicit operator Value(Vector3 f)
Parameters
Returns
Implicit(Vector4 to Value)
Declaration
public static implicit operator Value(Vector4 f)
Parameters
Returns
LessThan(Value, Value)
Declaration
public static bool operator <(Value a, Value b)
Parameters
Returns
LessThanOrEqual(Value, Value)
Declaration
public static bool operator <=(Value a, Value b)
Parameters
Returns
Extension Methods