本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}