예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }
예제 #3
0
 /// <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);
 }