當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。