当前位置: 首页>>代码示例>>C#>>正文


C# SerializedProperty.FindPropertyRelativeExplosive方法代码示例

本文整理汇总了C#中UnityEditor.SerializedProperty.FindPropertyRelativeExplosive方法的典型用法代码示例。如果您正苦于以下问题:C# SerializedProperty.FindPropertyRelativeExplosive方法的具体用法?C# SerializedProperty.FindPropertyRelativeExplosive怎么用?C# SerializedProperty.FindPropertyRelativeExplosive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UnityEditor.SerializedProperty的用法示例。


在下文中一共展示了SerializedProperty.FindPropertyRelativeExplosive方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CacheFields

            private bool CacheFields(SerializedProperty property, GUIContent label)
            {
                // if you refactor a class, it's field names might change but that won't be reflected here.
                // fail gracefully by returning false instead of emitting hundreds of hard exceptions.
                try
                {
                    this._animationClipField = property.FindPropertyRelativeExplosive("_animationClip");
                    this._parentOverrideField = property.FindPropertyRelativeExplosive("_parentOverride");
                    this._yRotationFixField = property.FindPropertyRelativeExplosive("_yRotationFix");
                }
                catch (Exception e)
                {
                    this._cacheFieldsFailureMessage = e.Message;
                    return false;
                }

                return true;
            }
开发者ID:supertms,项目名称:WolongYin,代码行数:18,代码来源:AnimatedCameraStateSettingsPropertyDrawer.cs

示例2: CacheFields

            private bool CacheFields(SerializedProperty property, GUIContent label)
            {
                // if you refactor a class, it's field names might change but that won't be reflected here.
                // fail gracefully by returning false instead of emitting hundreds of hard exceptions.
                try
                {
                    this._pivotHostField = property.FindPropertyRelativeExplosive("_pivotHost");
                    this._pivotHostOffsetField = property.FindPropertyRelativeExplosive("_pivotHostOffset");
                    this._useCameraCollisionField = property.FindPropertyRelativeExplosive("_useCameraCollision");
                }
                catch (Exception e)
                {
                    this._cacheFieldsFailureMessage = e.Message;
                    return false;
                }

                return true;
            }
开发者ID:supertms,项目名称:WolongYin,代码行数:18,代码来源:PivotCameraStateSettingsPropertyDrawer.cs

示例3: CacheFields

            private bool CacheFields(SerializedProperty property, GUIContent label)
            {
                // if you refactor a class, it's field names might change but that won't be reflected here.
                // fail gracefully by returning false instead of emitting hundreds of hard exceptions.
                try
                {
                    this._mouseOrbitField = property.FindPropertyRelativeExplosive("_mouseOrbit");
                    this._targetOffsetField = property.FindPropertyRelativeExplosive("_targetOffset");
                    this._mouseOrbitDistanceField = property.FindPropertyRelativeExplosive("_mouseOrbitDistance");
                    this._mousePitchRangeField = property.FindPropertyRelativeExplosive("_mousePitchRange");
                    this._mouseSensitivityField = property.FindPropertyRelativeExplosive("_mouseSensitivity");
                    this._mouseInvertYField = property.FindPropertyRelativeExplosive("_mouseInvertY");
                    this._motionSmoothingField = property.FindPropertyRelativeExplosive("_motionSmoothing");
                    this._useCameraCollisionField = property.FindPropertyRelativeExplosive("_useCameraCollision");
                }
                catch (Exception e)
                {
                    this._cacheFieldsFailureMessage = e.Message;
                    return false;
                }

                return true;
            }
开发者ID:supertms,项目名称:WolongYin,代码行数:23,代码来源:ThirdPersonCameraStateSettingsPropertyDrawer.cs

示例4: CacheFields

            private bool CacheFields(SerializedProperty property, GUIContent label)
            {
                // if you refactor a class, it's field names might change but that won't be reflected here.
                // fail gracefully by returning false instead of emitting hundreds of hard exceptions.
                try
                {
                    this._positionRootTransformField = property.FindPropertyRelativeExplosive("_positionRootTransform");
                    this._characterTransformField = property.FindPropertyRelativeExplosive("_characterTransform");
                    this._positionOffsetField = property.FindPropertyRelativeExplosive("_positionOffset");
                    this._pitchRangeField = property.FindPropertyRelativeExplosive("_pitchRange");
                    this._mouseLookSensitivityField = property.FindPropertyRelativeExplosive("_mouseLookSensitivity");
                    this._mouseSmoothingField = property.FindPropertyRelativeExplosive("_mouseSmoothing");
                }
                catch (Exception e)
                {
                    this._cacheFieldsFailureMessage = e.Message;
                    return false;
                }

                return true;
            }
开发者ID:supertms,项目名称:WolongYin,代码行数:21,代码来源:FirstPersonCameraStateSettingsPropertyDrawer.cs


注:本文中的UnityEditor.SerializedProperty.FindPropertyRelativeExplosive方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。