Example #1
0
 static void Initialize()
 {
     ReflectedPropertyBagUtils.SetIncludedProperties(typeof(Renderer), new HashSet <string>
     {
         nameof(Renderer.sharedMaterials)
     });
 }
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(Collider), new HashSet <string>
            {
                nameof(Collider.sharedMaterial)
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Collider), new HashSet <string>
            {
                nameof(Collider.contactOffset),
                nameof(Collider.material)
            });

            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(BoxCollider), new HashSet <string>
            {
                nameof(BoxCollider.center)
            });

            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(CapsuleCollider), new HashSet <string>
            {
                nameof(CapsuleCollider.center)
            });

            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(SphereCollider), new HashSet <string>
            {
                nameof(SphereCollider.center)
            });
        }
 static void Initialize()
 {
     ReflectedPropertyBagUtils.SetIncludedProperties(typeof(LayerMask), new HashSet <string>
     {
         nameof(LayerMask.value)
     });
 }
Example #4
0
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(Transform), new HashSet <string>
            {
                nameof(Transform.localPosition),
                nameof(Transform.localRotation),
                nameof(Transform.localScale)
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Transform), new HashSet <string>
            {
                nameof(Transform.hasChanged)
            });

            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(RectTransform), new HashSet <string>
            {
                nameof(RectTransform.pivot),
                nameof(RectTransform.anchorMin),
                nameof(RectTransform.anchorMax),
                nameof(RectTransform.sizeDelta),
                nameof(RectTransform.anchoredPosition)
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(RectTransform), new HashSet <string>
            {
                "drivenByObject"
            });
        }
 static void Initialize()
 {
     ReflectedPropertyBagUtils.SetIncludedProperties(typeof(UnityObject), new HashSet <string>
     {
         nameof(UnityObject.hideFlags)
     });
 }
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(MonoBehaviour), new HashSet <string>
            {
                nameof(MonoBehaviour.enabled)
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(MonoBehaviour), new HashSet <string>
            {
                nameof(MonoBehaviour.useGUILayout),
#if UNITY_EDITOR
                nameof(MonoBehaviour.runInEditMode)
#endif
            });
        }
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(Light), new HashSet <string>
            {
                nameof(Light.color),
#if UNITY_EDITOR
                nameof(Light.areaSize)
#endif
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Light), new HashSet <string>
            {
                nameof(Light.layerShadowCullDistances)
            });
        }
Example #8
0
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIncludedProperties(typeof(Camera), new HashSet <string>
            {
                nameof(Camera.backgroundColor),
                nameof(Camera.sensorSize),
                nameof(Camera.lensShift)
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Camera), new HashSet <string>
            {
                nameof(Camera.pixelRect),
                nameof(Camera.aspect)
            });
        }