/// <summary> /// Reads the given <see cref="SerializedValue"/> as <typeparamref name="T"/> and returns it. This will run all adapters. /// </summary> public T DeserializeValue <T>(SerializedValueView view) { var value = default(T); m_Visitor.ReadValue(ref value, view.AsUnsafe()); return(value); }
/// <summary> /// Continues visitation for the current type using the specified <see cref="SerializedValueView"/>. This will run the next adapter in the sequence, or the default behaviour and return the deserialized value. /// </summary> public TValue ContinueVisitationWithoutAdapters(SerializedValueView view) { var value = default(TValue); m_Visitor.ReadValueWithoutAdapters(ref value, view.AsUnsafe(), m_IsRoot); return(value); }
/// <summary> /// Continues visitation for the current type using the specified <see cref="SerializedValueView"/>. This will invoke the default behaviour and return the deserialized value.. /// </summary> public void ContinueVisitationWithoutAdapters(ref TValue value, SerializedValueView view) { m_Visitor.ReadValueWithoutAdapters(ref value, view.AsUnsafe(), m_IsRoot); }