This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Interpolator : MonoBehaviour | |
{ | |
[Range(0,1)] | |
[SerializeField] private float interpolationParam; | |
[SerializeField] private Vector3 destinationPosition; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Reflection; | |
using System; | |
using UnityEngine; | |
public static class WWWFormExt{ | |
public static void AddFieldsFromObject<T>(this WWWForm form, T sourceObject) | |
{ | |
var serializableAttr = Attribute.GetCustomAttribute(sourceObject.GetType(), typeof(SerializableAttribute)); | |
var type = typeof(T); |
NewerOlder