2using System.Collections;
3using System.Collections.Generic;
4using System.Runtime.Serialization;
15 public pb_MeshCollider(SerializationInfo info, StreamingContext context) : base(info, context) {}
19 Dictionary<string, object> props = pb_Reflection.ReflectProperties(
target);
25 if(props.TryGetValue(
"sharedMesh", out m))
27 MeshFilter mf =
target.gameObject.GetComponent<MeshFilter>();
29 if(mf !=
null && mf.sharedMesh.GetInstanceID() == m.GetHashCode())
30 props.Remove(
"sharedMesh");
pb_MeshCollider(SerializationInfo info, StreamingContext context)
pb_MeshCollider(UnityEngine.MeshCollider obj)
override Dictionary< string, object > PopulateSerializableDictionary()
T target
A reference to the component being serialized. Will be null on deserialization.