예제 #1
0
 public void LoadFromPrefs()
 {
     ScreenToLensDist  = PlayerPrefsExt.SafeGetFloat(ScreenToLensDistFieldName, DefaultValues.ScreenToLensDist);
     DistortionK1      = PlayerPrefsExt.SafeGetFloat(DistortionK1FieldName, DefaultValues.DistortionK1);
     DistortionK2      = PlayerPrefsExt.SafeGetFloat(DistortionK2FieldName, DefaultValues.DistortionK2);
     InterlensDistance = PlayerPrefsExt.SafeGetFloat(InterlensDistanceFieldName, DefaultValues.InterlensDistance);
     EyeOffsetY        = PlayerPrefsExt.SafeGetFloat(EyeOffsetYFieldName, DefaultValues.EyeOffsetY);
     MaxFovAngles      = new Fov
     {
         Left   = PlayerPrefsExt.SafeGetFloat(MaxFovAnglesLeftFieldName, DefaultValues.MaxFovAngles.Left),
         Right  = PlayerPrefsExt.SafeGetFloat(MaxFovAnglesRightFieldName, DefaultValues.MaxFovAngles.Right),
         Top    = PlayerPrefsExt.SafeGetFloat(MaxFovAnglesTopFieldName, DefaultValues.MaxFovAngles.Top),
         Bottom = PlayerPrefsExt.SafeGetFloat(MaxFovAnglesBottomFieldName, DefaultValues.MaxFovAngles.Bottom)
     };
 }
예제 #2
0
 public void LoadFromPrefs()
 {
     SegmentWidth  = PlayerPrefsExt.SafeGetInt(SegmentWidthFieldName, DefaultValues.SegmentWidth);
     SegmentHeight = PlayerPrefsExt.SafeGetInt(SegmentHeightFieldName, DefaultValues.SegmentHeight);
 }