Example #1
0
 static void Initialize()
 {
     ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(MeshFilter), new HashSet <string>
     {
         nameof(MeshFilter.mesh)
     });
 }
        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)
            });
        }
Example #3
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"
            });
        }
Example #4
0
 static void Initialize()
 {
     ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Canvas), new HashSet <string>
     {
         nameof(Canvas.worldCamera)
     });
 }
Example #5
0
 static void Initialize()
 {
     ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Animator), new HashSet <string>
     {
         nameof(Animator.playbackTime),
         nameof(Animator.fireEvents),
         nameof(Animator.stabilizeFeet),
         nameof(Animator.feetPivotActive),
         nameof(Animator.speed),
         nameof(Animator.layersAffectMassCenter),
         nameof(Animator.logWarnings)
     });
 }
        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)
            });
        }
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(TMP_TextInfo), new HashSet <string>
            {
                nameof(TMP_TextInfo.wordInfo),
                nameof(TMP_TextInfo.characterInfo),
                nameof(TMP_TextInfo.linkInfo),
                nameof(TMP_TextInfo.lineInfo),
                nameof(TMP_TextInfo.pageInfo),
                nameof(TMP_TextInfo.meshInfo),
                "m_CachedMeshInfo"
            });

            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(TMP_CharacterInfo), new HashSet <string>
            {
                nameof(TMP_CharacterInfo.textElement)
            });
        }
Example #10
0
        static void Initialize()
        {
            ReflectedPropertyBagUtils.SetIgnoredProperties(typeof(Rigidbody), new HashSet <string>
            {
                nameof(Rigidbody.maxDepenetrationVelocity),
                nameof(Rigidbody.freezeRotation),
                nameof(Rigidbody.detectCollisions),
                nameof(Rigidbody.solverIterations),
                nameof(Rigidbody.sleepThreshold),
                nameof(Rigidbody.maxAngularVelocity),
                nameof(Rigidbody.solverVelocityIterations),
#if !UNITY_2021_1_OR_NEWER
#pragma warning disable 618
                nameof(Rigidbody.sleepVelocity),
                nameof(Rigidbody.sleepAngularVelocity)
#pragma warning restore 618
#endif
            });
        }