Tanoda
pb_CameraComponent.cs
Go to the documentation of this file.
1using UnityEngine;
2using System.Collections;
3using System.Collections.Generic;
4using System.Runtime.Serialization;
5using GILES;
6
8{
12 public class pb_CameraComponent : pb_SerializableObject<UnityEngine.Camera>
13 {
14 public pb_CameraComponent(UnityEngine.Camera obj) : base(obj) {}
15 public pb_CameraComponent(SerializationInfo info, StreamingContext context) : base(info, context) {}
16
17 public override Dictionary<string, object> PopulateSerializableDictionary()
18 {
19 Dictionary<string, object> props = pb_Reflection.ReflectProperties(target);
20
21 props.Remove("worldToCameraMatrix");
22 props.Remove("projectionMatrix");
23
24 return props;
25 }
26 }
27}
pb_CameraComponent(SerializationInfo info, StreamingContext context)
pb_CameraComponent(UnityEngine.Camera obj)
override Dictionary< string, object > PopulateSerializableDictionary()
T target
A reference to the component being serialized. Will be null on deserialization.