public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { UnityObjectSurrogate surrogate = new UnityObjectSurrogate(); foreach (Type current in RuntimeReflectionUtilities.GetUnityObjectTypes()) { surrogates.AddSurrogate(current, context, surrogate); } }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { var unityObjectSurrogate = new UnityObjectSurrogate(); foreach (Type unityObjectType in fiRuntimeReflectionUtility.GetUnityObjectTypes()) { surrogates.AddSurrogate(unityObjectType, context, unityObjectSurrogate); } }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { surrogates.AddSurrogate(typeof(Color), context, new ColorSurrogate()); }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { surrogates.AddSurrogate(typeof(Keyframe), context, new KeyframeSurrogate()); surrogates.AddSurrogate(typeof(AnimationCurve), context, new AnimationCurveSurrogate()); }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { surrogates.AddSurrogate(typeof(Bounds), context, new BoundsSurrogate()); }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { surrogates.AddSurrogate(typeof(Vector2), context, new Vector2Surrogate()); surrogates.AddSurrogate(typeof(Vector3), context, new Vector3Surrogate()); surrogates.AddSurrogate(typeof(Vector4), context, new Vector4Surrogate()); }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { surrogates.AddSurrogate(typeof(Gradient), context, new GradientSurrogate()); surrogates.AddSurrogate(typeof(GradientAlphaKey), context, new GradientAlphaKeySurrogate()); surrogates.AddSurrogate(typeof(GradientColorKey), context, new GradientColorKeySurrogate()); }
public void Work(DictionarySurrogateSelector surrogates, StreamingContext context) { surrogates.AddSurrogate(typeof(LayerMask), context, new LayerMaskSurrogate()); }