浏览代码

Updated HDRP/VFX to 7.1.7 (2019.3.0f3) - Added Game Options Panel

/main
Thomas ICHÉ 5 年前
当前提交
fe0363d3
共有 78 个文件被更改,包括 6248 次插入34 次删除
  1. 46
      Assets/SampleLoader/SampleLoader.cs
  2. 854
      Assets/VisualEffectSamples.unity
  3. 2
      Packages/manifest.json
  4. 2
      ProjectSettings/HDRPProjectSettings.asset
  5. 4
      ProjectSettings/ProjectVersion.txt
  6. 8
      Packages/net.peeweek.game-options/Editor.meta
  7. 17
      Packages/net.peeweek.game-options/Editor/GameOptions.Editor.asmdef
  8. 7
      Packages/net.peeweek.game-options/Editor/GameOptions.Editor.asmdef.meta
  9. 35
      Packages/net.peeweek.game-options/Editor/MenuItems.cs
  10. 11
      Packages/net.peeweek.game-options/Editor/MenuItems.cs.meta
  11. 21
      Packages/net.peeweek.game-options/LICENSE
  12. 7
      Packages/net.peeweek.game-options/LICENSE.meta
  13. 8
      Packages/net.peeweek.game-options/Prefabs.meta
  14. 8
      Packages/net.peeweek.game-options/Prefabs/Audio.meta
  15. 166
      Packages/net.peeweek.game-options/Prefabs/Audio/Audio Paramater Slider Variant.prefab
  16. 7
      Packages/net.peeweek.game-options/Prefabs/Audio/Audio Paramater Slider Variant.prefab.meta
  17. 1001
      Packages/net.peeweek.game-options/Prefabs/Game Options Panel.prefab
  18. 7
      Packages/net.peeweek.game-options/Prefabs/Game Options Panel.prefab.meta
  19. 189
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntry.prefab
  20. 7
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntry.prefab.meta
  21. 437
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntryBool Variant.prefab
  22. 7
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntryBool Variant.prefab.meta
  23. 1001
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntryDropDown Variant.prefab
  24. 7
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntryDropDown Variant.prefab.meta
  25. 682
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntrySlider Variant.prefab
  26. 7
      Packages/net.peeweek.game-options/Prefabs/GameOptionEntrySlider Variant.prefab.meta
  27. 151
      Packages/net.peeweek.game-options/Prefabs/GameOptionHeader.prefab
  28. 7
      Packages/net.peeweek.game-options/Prefabs/GameOptionHeader.prefab.meta
  29. 8
      Packages/net.peeweek.game-options/Prefabs/Graphics.meta
  30. 144
      Packages/net.peeweek.game-options/Prefabs/Graphics/Full Screen Mode DropDown Variant.prefab
  31. 7
      Packages/net.peeweek.game-options/Prefabs/Graphics/Full Screen Mode DropDown Variant.prefab.meta
  32. 144
      Packages/net.peeweek.game-options/Prefabs/Graphics/Refresh Rate Dropdown Variant.prefab
  33. 7
      Packages/net.peeweek.game-options/Prefabs/Graphics/Refresh Rate Dropdown Variant.prefab.meta
  34. 145
      Packages/net.peeweek.game-options/Prefabs/Graphics/Resolution DropDown Variant.prefab
  35. 7
      Packages/net.peeweek.game-options/Prefabs/Graphics/Resolution DropDown Variant.prefab.meta
  36. 146
      Packages/net.peeweek.game-options/Prefabs/Graphics/Target Framerate DropDown Variant.prefab
  37. 7
      Packages/net.peeweek.game-options/Prefabs/Graphics/Target Framerate DropDown Variant.prefab.meta
  38. 121
      Packages/net.peeweek.game-options/Prefabs/Graphics/VSync Toggle Variant.prefab
  39. 7
      Packages/net.peeweek.game-options/Prefabs/Graphics/VSync Toggle Variant.prefab.meta
  40. 2
      Packages/net.peeweek.game-options/README.md
  41. 7
      Packages/net.peeweek.game-options/README.md.meta
  42. 8
      Packages/net.peeweek.game-options/Runtime.meta
  43. 97
      Packages/net.peeweek.game-options/Runtime/AudioOptions.cs
  44. 11
      Packages/net.peeweek.game-options/Runtime/AudioOptions.cs.meta
  45. 12
      Packages/net.peeweek.game-options/Runtime/GameOptions.asmdef
  46. 7
      Packages/net.peeweek.game-options/Runtime/GameOptions.asmdef.meta
  47. 26
      Packages/net.peeweek.game-options/Runtime/GameOptions.cs
  48. 11
      Packages/net.peeweek.game-options/Runtime/GameOptions.cs.meta
  49. 90
      Packages/net.peeweek.game-options/Runtime/GraphicOptions.cs
  50. 11
      Packages/net.peeweek.game-options/Runtime/GraphicOptions.cs.meta
  51. 8
      Packages/net.peeweek.game-options/Runtime/UI.meta
  52. 29
      Packages/net.peeweek.game-options/Runtime/UI/ButtonApplyOptions.cs
  53. 11
      Packages/net.peeweek.game-options/Runtime/UI/ButtonApplyOptions.cs.meta
  54. 40
      Packages/net.peeweek.game-options/Runtime/UI/DropDownFullScreenMode.cs
  55. 11
      Packages/net.peeweek.game-options/Runtime/UI/DropDownFullScreenMode.cs.meta
  56. 54
      Packages/net.peeweek.game-options/Runtime/UI/DropDownRefreshRate.cs
  57. 11
      Packages/net.peeweek.game-options/Runtime/UI/DropDownRefreshRate.cs.meta
  58. 66
      Packages/net.peeweek.game-options/Runtime/UI/DropDownResolution.cs
  59. 11
      Packages/net.peeweek.game-options/Runtime/UI/DropDownResolution.cs.meta
  60. 45
      Packages/net.peeweek.game-options/Runtime/UI/DropDownTargetFramerate.cs
  61. 11
      Packages/net.peeweek.game-options/Runtime/UI/DropDownTargetFramerate.cs.meta
  62. 83
      Packages/net.peeweek.game-options/Runtime/UI/SliderAudioParameter.cs
  63. 11
      Packages/net.peeweek.game-options/Runtime/UI/SliderAudioParameter.cs.meta
  64. 32
      Packages/net.peeweek.game-options/Runtime/UI/SliderTargetFramerate.cs
  65. 11
      Packages/net.peeweek.game-options/Runtime/UI/SliderTargetFramerate.cs.meta
  66. 43
      Packages/net.peeweek.game-options/Runtime/UI/SliderTextBind.cs
  67. 11
      Packages/net.peeweek.game-options/Runtime/UI/SliderTextBind.cs.meta
  68. 33
      Packages/net.peeweek.game-options/Runtime/UI/ToggleVSync.cs
  69. 11
      Packages/net.peeweek.game-options/Runtime/UI/ToggleVSync.cs.meta
  70. 12
      Packages/net.peeweek.game-options/package.json
  71. 7
      Packages/net.peeweek.game-options/package.json.meta

46
Assets/SampleLoader/SampleLoader.cs


public GameObject DemoModeProgressBG;
public RectTransform DemoModeProgressBar;
[Header("Options Menu")]
[Header("Menu")]
public RectTransform OptionsMenuTransform;
public RectTransform MenuTransform;
[Header("Options Window")]
public GameObject OptionsWindowRoot;
[Header("FPS Counter")]
public GameObject DebugRoot;

SetFPSVisible(false);
SetMenuVisible(false);
SetLoadSceneWindowVisible(false);
SetOptionsWindowVisible(false);
SetDemoMode(true);
instance = this;

#endregion
#region OPTIONS MENU
#region MENU
bool m_MenuVisible = false;

if(m_LoadSceneWindowVisible)
SetLoadSceneWindowVisible(false);
if (m_OptionsWindowVisible)
SetOptionsWindowVisible(false);
OptionsMenuTransform.anchoredPosition = new Vector3(0, 0, 0);
MenuTransform.anchoredPosition = new Vector3(0, 0, 0);
OptionsMenuTransform.anchoredPosition = new Vector3(OptionsMenuTransform.sizeDelta.x, 0, 0);
MenuTransform.anchoredPosition = new Vector3(MenuTransform.sizeDelta.x, 0, 0);
}
if(m_MenuVisible != visible)

if (m_LoadSceneWindowVisible != value)
{
if (value)
{
SetOptionsWindowVisible(false);
}
LoadSceneWindowRoot.SetActive(value);

#endregion
#region OPTIONS WINDOW
bool m_OptionsWindowVisible = true;
public void SetOptionsWindowVisible(bool value)
{
if (m_OptionsWindowVisible != value)
{
if (value)
{
SetMenuVisible(false);
SetLoadSceneWindowVisible(false);
}
OptionsWindowRoot.SetActive(value);
m_OptionsWindowVisible = value;
if (onMenuToggle != null)
onMenuToggle.Invoke(value);
}
}
#endregion
void Update()
{
if (Input.GetKeyDown(MenuToggleKey))

854
Assets/VisualEffectSamples.unity
文件差异内容过多而无法显示
查看文件

2
Packages/manifest.json


{
"dependencies": {
"com.unity.cinemachine": "2.3.5-preview.3",
"com.unity.render-pipelines.high-definition": "7.1.6",
"com.unity.render-pipelines.high-definition": "7.1.7",
"com.unity.textmeshpro": "2.0.1",
"com.unity.timeline": "1.2.6",
"com.unity.ugui": "1.0.0",

2
ProjectSettings/HDRPProjectSettings.asset


m_ProjectSettingFolderPath: HDRP
m_WizardPopupAtStart: 0
m_WizardActiveTab: 0
m_PackageVersionForMaterials: 7.1.6
m_PackageVersionForMaterials: 7.1.7

4
ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2019.3.0f1
m_EditorVersionWithRevision: 2019.3.0f1 (ffacea4b84e7)
m_EditorVersion: 2019.3.0f3
m_EditorVersionWithRevision: 2019.3.0f3 (6c9e2bfd6f81)

8
Packages/net.peeweek.game-options/Editor.meta


fileFormatVersion: 2
guid: 5bf604c695e81fb4bb3d36453af169ea
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

17
Packages/net.peeweek.game-options/Editor/GameOptions.Editor.asmdef


{
"name": "GameOptions.Editor",
"references": [
"GUID:bf77ea25d32b5894b9522d25caaa39eb"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

7
Packages/net.peeweek.game-options/Editor/GameOptions.Editor.asmdef.meta


fileFormatVersion: 2
guid: 0c6932878f11ac44f9d10f2aa26297a5
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

35
Packages/net.peeweek.game-options/Editor/MenuItems.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace GameOptionsUtility.Editor
{
static class MenuItems
{
[MenuItem("Assets/Create/Default Graphics Options")]
static void CreateDefaultGraphicsOptions()
{
System.IO.Directory.CreateDirectory($"{Application.dataPath}/Resources");
var asset = ScriptableObject.CreateInstance<GraphicOptions>();
AssetDatabase.CreateAsset(asset, $"Assets/Resources/{nameof(GraphicOptions)}.asset");
EditorGUIUtility.PingObject(asset);
Selection.activeObject = asset;
}
[MenuItem("Assets/Create/Default Audio Options")]
static void CreateDefaultAudioOptions()
{
System.IO.Directory.CreateDirectory($"{Application.dataPath}/Resources");
var asset = ScriptableObject.CreateInstance<AudioOptions>();
AssetDatabase.CreateAsset(asset, $"Assets/Resources/{nameof(AudioOptions)}.asset");
EditorGUIUtility.PingObject(asset);
Selection.activeObject = asset;
}
}
}

11
Packages/net.peeweek.game-options/Editor/MenuItems.cs.meta


fileFormatVersion: 2
guid: 65ed215c70baafc499a131783c9604b2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

21
Packages/net.peeweek.game-options/LICENSE


MIT License
Copyright (c) 2018 Thomas ICHÉ
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

7
Packages/net.peeweek.game-options/LICENSE.meta


fileFormatVersion: 2
guid: d7b90be6b3394434785100cd25a05b95
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Packages/net.peeweek.game-options/Prefabs.meta


fileFormatVersion: 2
guid: 37056717b00832d4cb50b234cc10a284
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Packages/net.peeweek.game-options/Prefabs/Audio.meta


fileFormatVersion: 2
guid: fa75e76c2e175a0479df3a233a99e24c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

166
Packages/net.peeweek.game-options/Prefabs/Audio/Audio Paramater Slider Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &28589930
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1297834685244609333}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e10ab4e0553a6a74aa8a589f49e27b90, type: 3}
m_Name:
m_EditorClassIdentifier:
Parameter: Master
MinMaxParameterValue: {x: -80, y: 0}
ApplyParameter: 1
MinMaxSliderValue: {x: 0, y: 1}
LogarithmicScale: 1
IntegerSliderValues: 0
--- !u!1001 &1297834685625953051
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 204735219, guid: 880b2570b9f04e046abcbb9147d9b6da, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 403439896, guid: 880b2570b9f04e046abcbb9147d9b6da, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 717617201, guid: 880b2570b9f04e046abcbb9147d9b6da, type: 3}
propertyPath: Suffix
value: '%'
objectReference: {fileID: 0}
- target: {fileID: 717617201, guid: 880b2570b9f04e046abcbb9147d9b6da, type: 3}
propertyPath: AsPercentage
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -672
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 6229226766417129473, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6527446259736664622, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_Name
value: Audio Paramater Slider
objectReference: {fileID: 0}
- target: {fileID: 6545799279665741935, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
propertyPath: m_Text
value: Audio Parameter Slider
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 880b2570b9f04e046abcbb9147d9b6da, type: 3}
--- !u!1 &1297834685244609333 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 717617198, guid: 880b2570b9f04e046abcbb9147d9b6da,
type: 3}
m_PrefabInstance: {fileID: 1297834685625953051}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/Audio/Audio Paramater Slider Variant.prefab.meta


fileFormatVersion: 2
guid: a54a9e2b987779e4d9ee72eaac4b4fec
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
Packages/net.peeweek.game-options/Prefabs/Game Options Panel.prefab
文件差异内容过多而无法显示
查看文件

7
Packages/net.peeweek.game-options/Prefabs/Game Options Panel.prefab.meta


fileFormatVersion: 2
guid: d01cd2ed5d4e4144fb011b91aba701db
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

189
Packages/net.peeweek.game-options/Prefabs/GameOptionEntry.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6930701346793127765
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7839149917074838906}
m_Layer: 5
m_Name: GameOptionEntry
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7839149917074838906
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6930701346793127765}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 2135674710631987067}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 96}
m_Pivot: {x: 0.5, y: 1}
--- !u!1 &7913506654664937089
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2135674710631987067}
- component: {fileID: 9065468770990018734}
- component: {fileID: 9214983364259506403}
m_Layer: 5
m_Name: Label
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2135674710631987067
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7913506654664937089}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7614815128011061925}
m_Father: {fileID: 7839149917074838906}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -236, y: -4}
m_SizeDelta: {x: -488, y: -8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &9065468770990018734
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7913506654664937089}
m_CullTransparentMesh: 0
--- !u!114 &9214983364259506403
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7913506654664937089}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.1254902, g: 0.1254902, b: 0.1254902, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &8108207806772235796
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7614815128011061925}
- component: {fileID: 5672698456528997149}
- component: {fileID: 6948966462117553428}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7614815128011061925
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8108207806772235796}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2135674710631987067}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: 8, y: 0}
m_SizeDelta: {x: -80, y: 48}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5672698456528997149
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8108207806772235796}
m_CullTransparentMesh: 0
--- !u!114 &6948966462117553428
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8108207806772235796}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.6886792, g: 0.6886792, b: 0.6886792, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 32
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 40
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Game Option Entry

7
Packages/net.peeweek.game-options/Prefabs/GameOptionEntry.prefab.meta


fileFormatVersion: 2
guid: 1c767a00d4fc8d44a8de55cd23980091
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

437
Packages/net.peeweek.game-options/Prefabs/GameOptionEntryBool Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &185892096
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 185892097}
- component: {fileID: 185892099}
- component: {fileID: 185892098}
m_Layer: 5
m_Name: Bool Toggle
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &185892097
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 185892096}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1276828479}
m_Father: {fileID: 7226165402265798909}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -239.5, y: -4}
m_SizeDelta: {x: 463, y: -8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &185892099
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 185892096}
m_CullTransparentMesh: 0
--- !u!114 &185892098
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 185892096}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.1254902, g: 0.1254902, b: 0.1254902, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &386716191
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 386716192}
- component: {fileID: 386716194}
- component: {fileID: 386716193}
m_Layer: 5
m_Name: Background
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &386716192
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 386716191}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1226088688}
m_Father: {fileID: 1276828479}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 20, y: -20}
m_SizeDelta: {x: 40, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &386716194
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 386716191}
m_CullTransparentMesh: 0
--- !u!114 &386716193
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 386716191}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.6509434, g: 0.6509434, b: 0.6509434, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &1226088687
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1226088688}
- component: {fileID: 1226088690}
- component: {fileID: 1226088689}
m_Layer: 5
m_Name: Checkmark
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1226088688
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1226088687}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 2, y: 2, z: 1}
m_Children: []
m_Father: {fileID: 386716192}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 20, y: 20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1226088690
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1226088687}
m_CullTransparentMesh: 0
--- !u!114 &1226088689
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1226088687}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10901, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &1276828478
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1276828479}
- component: {fileID: 1276828480}
m_Layer: 5
m_Name: Toggle
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1276828479
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1276828478}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 386716192}
m_Father: {fileID: 185892097}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 40, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1276828480
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1276828478}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9085046f02f69544eb97fd06b6048fe2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 386716193}
toggleTransition: 1
graphic: {fileID: 1226088689}
m_Group: {fileID: 0}
onValueChanged:
m_PersistentCalls:
m_Calls: []
m_IsOn: 1
--- !u!1001 &613121172145577351
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 6930701346793127765, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Name
value: GameOptionEntryBool
objectReference: {fileID: 0}
- target: {fileID: 6948966462117553428, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Text
value: Game Option Entry (Boolean)
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -192
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1c767a00d4fc8d44a8de55cd23980091, type: 3}
--- !u!224 &7226165402265798909 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
m_PrefabInstance: {fileID: 613121172145577351}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/GameOptionEntryBool Variant.prefab.meta


fileFormatVersion: 2
guid: 36fc23dca840baf4cab245f329a4d8a4
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

1001
Packages/net.peeweek.game-options/Prefabs/GameOptionEntryDropDown Variant.prefab
文件差异内容过多而无法显示
查看文件

7
Packages/net.peeweek.game-options/Prefabs/GameOptionEntryDropDown Variant.prefab.meta


fileFormatVersion: 2
guid: 22ac6a1da279db94ebffda71a105c766
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

682
Packages/net.peeweek.game-options/Prefabs/GameOptionEntrySlider Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &204735218
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 204735219}
- component: {fileID: 204735221}
- component: {fileID: 204735220}
m_Layer: 5
m_Name: Fill
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &204735219
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 204735218}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 715803338}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 10, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &204735221
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 204735218}
m_CullTransparentMesh: 0
--- !u!114 &204735220
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 204735218}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &403439895
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 403439896}
- component: {fileID: 403439898}
- component: {fileID: 403439897}
m_Layer: 5
m_Name: Handle
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &403439896
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 403439895}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 933187349}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &403439898
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 403439895}
m_CullTransparentMesh: 0
--- !u!114 &403439897
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 403439895}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &715803337
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 715803338}
m_Layer: 5
m_Name: Fill Area
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &715803338
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 715803337}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 204735219}
m_Father: {fileID: 717617199}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.25}
m_AnchorMax: {x: 1, y: 0.75}
m_AnchoredPosition: {x: -5, y: 0}
m_SizeDelta: {x: -20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &717617198
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 717617199}
- component: {fileID: 717617200}
- component: {fileID: 717617201}
m_Layer: 5
m_Name: Slider
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &717617199
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 717617198}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 928162380}
- {fileID: 715803338}
- {fileID: 933187349}
m_Father: {fileID: 2072712123}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: 63.4, y: 0}
m_SizeDelta: {x: -190.8, y: 20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &717617200
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 717617198}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 403439897}
m_FillRect: {fileID: 204735219}
m_HandleRect: {fileID: 403439896}
m_Direction: 0
m_MinValue: 0
m_MaxValue: 1
m_WholeNumbers: 0
m_Value: 1
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
--- !u!114 &717617201
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 717617198}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1b15d7d04c3c1b34fbde5a6d53578e47, type: 3}
m_Name:
m_EditorClassIdentifier:
text: {fileID: 1525358864}
Prefix:
Suffix: '%'
AsPercentage: 1
NumberFormat: F0
--- !u!1 &928162379
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 928162380}
- component: {fileID: 928162382}
- component: {fileID: 928162381}
m_Layer: 5
m_Name: Background
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &928162380
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 928162379}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 717617199}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.25}
m_AnchorMax: {x: 1, y: 0.75}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &928162382
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 928162379}
m_CullTransparentMesh: 0
--- !u!114 &928162381
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 928162379}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &933187348
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 933187349}
m_Layer: 5
m_Name: Handle Slide Area
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &933187349
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 933187348}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 403439896}
m_Father: {fileID: 717617199}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1525358862
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1525358863}
- component: {fileID: 1525358865}
- component: {fileID: 1525358864}
m_Layer: 5
m_Name: SliderText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1525358863
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1525358862}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2072712123}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: 84.925, y: 0}
m_SizeDelta: {x: 121.85, y: 48}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1525358865
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1525358862}
m_CullTransparentMesh: 0
--- !u!114 &1525358864
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1525358862}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.6886792, g: 0.6886792, b: 0.6886792, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 32
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 40
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 100%
--- !u!1 &2072712122
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2072712123}
- component: {fileID: 2072712125}
- component: {fileID: 2072712124}
m_Layer: 5
m_Name: Slider
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2072712123
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2072712122}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1525358863}
- {fileID: 717617199}
m_Father: {fileID: 6229226766417129473}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -239.5, y: -4}
m_SizeDelta: {x: 463, y: -8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2072712125
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2072712122}
m_CullTransparentMesh: 0
--- !u!114 &2072712124
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2072712122}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.1254902, g: 0.1254902, b: 0.1254902, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1001 &4231389056612869499
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 6930701346793127765, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Name
value: GameOptionEntrySlider Variant
objectReference: {fileID: 0}
- target: {fileID: 6948966462117553428, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Text
value: Game Option Entry (Slider)
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -384
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1c767a00d4fc8d44a8de55cd23980091, type: 3}
--- !u!224 &6229226766417129473 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
m_PrefabInstance: {fileID: 4231389056612869499}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/GameOptionEntrySlider Variant.prefab.meta


fileFormatVersion: 2
guid: 880b2570b9f04e046abcbb9147d9b6da
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

151
Packages/net.peeweek.game-options/Prefabs/GameOptionHeader.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &6185940868021123038
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 6930701346793127765, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Name
value: GameOptionHeader
objectReference: {fileID: 0}
- target: {fileID: 6948966462117553428, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Color.r
value: 0.8962264
objectReference: {fileID: 0}
- target: {fileID: 6948966462117553428, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Color.g
value: 0.8962264
objectReference: {fileID: 0}
- target: {fileID: 6948966462117553428, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Color.b
value: 0.8962264
objectReference: {fileID: 0}
- target: {fileID: 6948966462117553428, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_FontData.m_FontSize
value: 36
objectReference: {fileID: 0}
- target: {fileID: 7614815128011061925, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7614815128011061925, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.x
value: -64
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7839149917074838906, guid: 1c767a00d4fc8d44a8de55cd23980091,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1c767a00d4fc8d44a8de55cd23980091, type: 3}

7
Packages/net.peeweek.game-options/Prefabs/GameOptionHeader.prefab.meta


fileFormatVersion: 2
guid: 4fa76d53f493254408b8f1430dbb99c2
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Packages/net.peeweek.game-options/Prefabs/Graphics.meta


fileFormatVersion: 2
guid: 11066f60b4747914d9b11470ac511cec
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

144
Packages/net.peeweek.game-options/Prefabs/Graphics/Full Screen Mode DropDown Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &4612770259769001191
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4404410612849649905}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 2e06b21fbad0c83489ea070e2c32b5bb, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &4404410612025063123
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3504929485197621412, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Text
value: Full Screen Mode
objectReference: {fileID: 0}
- target: {fileID: 3523361657030796005, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Name
value: Full Screen Mode DropDown Variant
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -288
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 22ac6a1da279db94ebffda71a105c766, type: 3}
--- !u!1 &4404410612849649905 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1366023714, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
m_PrefabInstance: {fileID: 4404410612025063123}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/Graphics/Full Screen Mode DropDown Variant.prefab.meta


fileFormatVersion: 2
guid: bd473b90d7876e84381270669c2f7087
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

144
Packages/net.peeweek.game-options/Prefabs/Graphics/Refresh Rate Dropdown Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1966489588
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6108783246797681019}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0a65a169803a22441b23828cdf7977d0, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &6108783245976956761
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3504929485197621412, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Text
value: Refresh Rate
objectReference: {fileID: 0}
- target: {fileID: 3523361657030796005, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Name
value: Refresh Rate Dropdown
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -288.00003
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 22ac6a1da279db94ebffda71a105c766, type: 3}
--- !u!1 &6108783246797681019 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1366023714, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
m_PrefabInstance: {fileID: 6108783245976956761}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/Graphics/Refresh Rate Dropdown Variant.prefab.meta


fileFormatVersion: 2
guid: 6d3477c4d1f6bb640a0a7bc823e6e0b5
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

145
Packages/net.peeweek.game-options/Prefabs/Graphics/Resolution DropDown Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &4255745778679776127
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 56862133708563425}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8f2de5fb3ab35f0438e176c475be199c, type: 3}
m_Name:
m_EditorClassIdentifier:
dropDownRefreshRate: {fileID: 0}
--- !u!1001 &56862134527950275
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3504929485197621412, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Text
value: Resolution
objectReference: {fileID: 0}
- target: {fileID: 3523361657030796005, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Name
value: Resolution DropDown
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -191.99998
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 22ac6a1da279db94ebffda71a105c766, type: 3}
--- !u!1 &56862133708563425 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1366023714, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
m_PrefabInstance: {fileID: 56862134527950275}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/Graphics/Resolution DropDown Variant.prefab.meta


fileFormatVersion: 2
guid: ba51a5f18e4d54b429a1667a7562d7bc
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

146
Packages/net.peeweek.game-options/Prefabs/Graphics/Target Framerate DropDown Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &2029206346
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4888742712080869626}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 535744594fb97ad409f1a5ea63ccda0f, type: 3}
m_Name:
m_EditorClassIdentifier:
TargetFramerates: ffffffff0f0000001e0000003c000000
InfiniteText: Infinite
--- !u!1001 &4888742711256413912
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3504929485197621412, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Text
value: Target Framerate (frames per second)
objectReference: {fileID: 0}
- target: {fileID: 3523361657030796005, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Name
value: Target Framerate DropDown
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -480
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4324005075986335946, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 22ac6a1da279db94ebffda71a105c766, type: 3}
--- !u!1 &4888742712080869626 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 1366023714, guid: 22ac6a1da279db94ebffda71a105c766,
type: 3}
m_PrefabInstance: {fileID: 4888742711256413912}
m_PrefabAsset: {fileID: 0}

7
Packages/net.peeweek.game-options/Prefabs/Graphics/Target Framerate DropDown Variant.prefab.meta


fileFormatVersion: 2
guid: 1aece9899e7ced74ba3009297e04de95
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

121
Packages/net.peeweek.game-options/Prefabs/Graphics/VSync Toggle Variant.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &2631596637362247864
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -192
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_SizeDelta.y
value: 96
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7226165402265798909, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_Pivot.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7542669912858092242, guid: 36fc23dca840baf4cab245f329a4d8a4,
type: 3}
propertyPath: m_Name
value: VSync Toggle
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 36fc23dca840baf4cab245f329a4d8a4, type: 3}

7
Packages/net.peeweek.game-options/Prefabs/Graphics/VSync Toggle Variant.prefab.meta


fileFormatVersion: 2
guid: 8d2637a16f26d3a4cb26406c0db41e12
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

2
Packages/net.peeweek.game-options/README.md


# net.peeweek.game-options
Game Options Elements for Unity Games

7
Packages/net.peeweek.game-options/README.md.meta


fileFormatVersion: 2
guid: 74a8af7cbe647ce4291015cebd40f3ac
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
Packages/net.peeweek.game-options/Runtime.meta


fileFormatVersion: 2
guid: 8bd8123263e3b0e44be4784db8475956
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

97
Packages/net.peeweek.game-options/Runtime/AudioOptions.cs


using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Audio;
namespace GameOptionsUtility
{
public class AudioOptions : ScriptableObject
{
public class Preferences
{
public const string prefix = GameOptions.Preferences.prefix + "Audio.";
public const string parameterPrefix = prefix + "Parameter.";
}
public float GetParameter(string paramName)
{
if (m_Parameters.Any(o => o.Parameter == paramName))
{
var param = m_Parameters.First(o => o.Parameter == paramName);
return PlayerPrefs.GetFloat(Preferences.parameterPrefix + param, param.Value);
}
else
return 0;
}
public void SetParameter(string paramName, float value, bool Apply)
{
if (m_Parameters.Any(o => o.Parameter == paramName))
{
PlayerPrefs.SetFloat(Preferences.parameterPrefix + paramName, value);
if(Apply)
SetParameter(paramName, value);
}
}
public AudioMixer mixer
{
get
{
AudioMixer mixer = m_AudioMixer;
if (mixer == null)
mixer = Object.FindObjectOfType<AudioMixer>();
if (mixer == null)
{
Debug.LogWarning("No Mixer has been found in the project");
return null;
}
return mixer;
}
}
[Header("Audio Mixer"), SerializeField]
protected AudioMixer m_AudioMixer;
[Header("Parameters"), SerializeField]
protected ParameterValue[] m_Parameters = new ParameterValue[0];
[System.Serializable]
public struct ParameterValue
{
public string Parameter;
public float Value;
}
public static AudioOptions Load()
{
var audioOptions = Resources.Load<AudioOptions>(nameof(AudioOptions));
if (audioOptions == null)
{
audioOptions = CreateInstance<AudioOptions>();
}
return audioOptions;
}
public void Apply()
{
foreach(var parameter in m_Parameters)
{
SetParameter(parameter.Parameter, GetParameter(parameter.Parameter));
}
}
void SetParameter(string parameter, float value)
{
AudioMixer currentMixer = this.mixer;
if(currentMixer != null)
currentMixer.SetFloat(parameter, value);
}
}
}

11
Packages/net.peeweek.game-options/Runtime/AudioOptions.cs.meta


fileFormatVersion: 2
guid: 62f4e0bc96fc28a4cbead1f6f1d48d7b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

12
Packages/net.peeweek.game-options/Runtime/GameOptions.asmdef


{
"name": "GameOptions",
"references": [],
"optionalUnityReferences": [],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": []
}

7
Packages/net.peeweek.game-options/Runtime/GameOptions.asmdef.meta


fileFormatVersion: 2
guid: bf77ea25d32b5894b9522d25caaa39eb
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

26
Packages/net.peeweek.game-options/Runtime/GameOptions.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace GameOptionsUtility
{
public static class GameOptions
{
public class Preferences
{
public const string prefix = "GameOptions.";
}
public static GraphicOptions graphics;
public static AudioOptions audio;
static GameOptions()
{
graphics = GraphicOptions.Load();
graphics.Apply();
audio = AudioOptions.Load();
audio.Apply();
}
}
}

11
Packages/net.peeweek.game-options/Runtime/GameOptions.cs.meta


fileFormatVersion: 2
guid: ad4ef86fb9f9f1846abd2c062102f1de
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

90
Packages/net.peeweek.game-options/Runtime/GraphicOptions.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace GameOptionsUtility
{
public class GraphicOptions : ScriptableObject
{
public class Preferences
{
public const string prefix = GameOptions.Preferences.prefix + "Graphics.";
public const string fullScreenMode = prefix + "FullScreenMode";
public const string vSync = prefix + "VSync";
public const string targetFrameRate = prefix + "TargetFrameRate";
public const string resolutionWidth = prefix + "ResolutionWidth";
public const string resolutionHeight = prefix + "ResolutionHeight";
public const string refreshRate = prefix + "RefreshRate";
}
public FullScreenMode fullScreenMode
{
get { return(FullScreenMode)PlayerPrefs.GetInt(Preferences.fullScreenMode, (int)m_DefaultFullScreenMode); }
set { PlayerPrefs.SetInt(Preferences.fullScreenMode, (int)value); }
}
public bool vSync
{
get { return PlayerPrefs.GetInt(Preferences.vSync, m_DefaultVSync? 1 : 0) == 1? true : false; }
set { PlayerPrefs.SetInt(Preferences.vSync, value? 1 : 0); }
}
public int targetFrameRate
{
get { return PlayerPrefs.GetInt(Preferences.targetFrameRate, m_DefaultTargetFrameRate); }
set { PlayerPrefs.SetInt(Preferences.targetFrameRate, value); }
}
public int width
{
get { return PlayerPrefs.GetInt(Preferences.resolutionWidth, m_DefaultNativeResolution ? Screen.width : m_DefaultWidth); }
set { PlayerPrefs.SetInt(Preferences.resolutionWidth, value); }
}
public int height
{
get { return PlayerPrefs.GetInt(Preferences.resolutionHeight, m_DefaultNativeResolution ? Screen.height : m_DefaultHeight); }
set { PlayerPrefs.SetInt(Preferences.resolutionHeight, value); }
}
public int refreshRate
{
get { return PlayerPrefs.GetInt(Preferences.refreshRate, m_DefaultRefreshRate); }
set { PlayerPrefs.SetInt(Preferences.refreshRate, value); }
}
[Header("Defaults")]
[SerializeField]
protected FullScreenMode m_DefaultFullScreenMode = FullScreenMode.FullScreenWindow;
[SerializeField]
protected bool m_DefaultVSync = true;
[SerializeField]
protected int m_DefaultTargetFrameRate = -1;
[SerializeField]
protected bool m_DefaultNativeResolution = true;
[SerializeField]
protected int m_DefaultWidth = 1280;
[SerializeField]
protected int m_DefaultHeight = 720;
[SerializeField]
protected int m_DefaultRefreshRate = 60;
[SerializeField]
protected int m_DefaultMonitor = 0;
public static GraphicOptions Load()
{
var graphics = Resources.Load<GraphicOptions>(nameof(GraphicOptions));
if (graphics == null)
{
graphics = CreateInstance<GraphicOptions>();
}
return graphics;
}
public void Apply()
{
Screen.SetResolution(width, height, fullScreenMode, refreshRate);
QualitySettings.vSyncCount = vSync ? 1 : 0;
Application.targetFrameRate = targetFrameRate;
}
}
}

11
Packages/net.peeweek.game-options/Runtime/GraphicOptions.cs.meta


fileFormatVersion: 2
guid: c212e8504825f5d4cb574c36aa746173
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

8
Packages/net.peeweek.game-options/Runtime/UI.meta


fileFormatVersion: 2
guid: 7ecaaae0819ba9d419f4770c17ddb6d0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

29
Packages/net.peeweek.game-options/Runtime/UI/ButtonApplyOptions.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Button))]
public class ButtonApplyOptions : MonoBehaviour
{
public bool ApplyGraphics = true;
private void OnEnable()
{
GetComponent<Button>().onClick.AddListener(Apply);
}
private void OnDisable()
{
GetComponent<Button>().onClick.RemoveListener(Apply);
}
void Apply()
{
if(ApplyGraphics)
GameOptions.graphics.Apply();
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/ButtonApplyOptions.cs.meta


fileFormatVersion: 2
guid: 07c447adeba83444780bfd5b469e0a24
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

40
Packages/net.peeweek.game-options/Runtime/UI/DropDownFullScreenMode.cs


using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Dropdown))]
public class DropDownFullScreenMode : MonoBehaviour
{
private void OnEnable()
{
var dropdown = GetComponent<Dropdown>();
InitializeEntries(dropdown);
dropdown.onValueChanged.AddListener(UpdateOptions);
UpdateOptions(dropdown.value);
}
private void OnDisable()
{
GetComponent<Dropdown>().onValueChanged.RemoveListener(UpdateOptions);
}
public void InitializeEntries(Dropdown dropdown)
{
dropdown.options.Clear();
dropdown.options.Add(new Dropdown.OptionData("Full Screen"));
dropdown.options.Add(new Dropdown.OptionData("Full Screen (Windowed)"));
dropdown.options.Add(new Dropdown.OptionData("Maximized Window"));
dropdown.options.Add(new Dropdown.OptionData("Window"));
}
void UpdateOptions(int value)
{
GameOptions.graphics.fullScreenMode = (FullScreenMode)value;
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/DropDownFullScreenMode.cs.meta


fileFormatVersion: 2
guid: 2e06b21fbad0c83489ea070e2c32b5bb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

54
Packages/net.peeweek.game-options/Runtime/UI/DropDownRefreshRate.cs


using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Dropdown))]
public class DropDownRefreshRate : MonoBehaviour
{
private void OnEnable()
{
var dropdown = GetComponent<Dropdown>();
InitializeEntries();
dropdown.onValueChanged.AddListener(UpdateOptions);
UpdateOptions(dropdown.value);
}
private void OnDisable()
{
GetComponent<Dropdown>().onValueChanged.RemoveListener(UpdateOptions);
}
public void InitializeEntries()
{
var dropdown = GetComponent<Dropdown>();
dropdown.options.Clear();
int selected = 0;
int i = 0;
foreach (var res in Screen.resolutions)
{
if(res.width == GameOptions.graphics.width && res.height == GameOptions.graphics.height)
{
if (!dropdown.options.Any(o => o.text == res.refreshRate.ToString()))
dropdown.options.Add(new Dropdown.OptionData(res.refreshRate.ToString()));
if (GameOptions.graphics.refreshRate == res.refreshRate)
selected = i;
i++;
}
}
dropdown.SetValueWithoutNotify(selected);
}
void UpdateOptions(int value)
{
GameOptions.graphics.refreshRate = int.Parse(GetComponent<Dropdown>().options[value].text);
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/DropDownRefreshRate.cs.meta


fileFormatVersion: 2
guid: 0a65a169803a22441b23828cdf7977d0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

66
Packages/net.peeweek.game-options/Runtime/UI/DropDownResolution.cs


using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Dropdown))]
public class DropDownResolution : MonoBehaviour
{
public DropDownRefreshRate dropDownRefreshRate;
private void OnEnable()
{
var dropdown = GetComponent<Dropdown>();
InitializeEntries();
dropdown.onValueChanged.AddListener(UpdateOptions);
UpdateOptions(dropdown.value);
}
private void OnDisable()
{
GetComponent<Dropdown>().onValueChanged.RemoveListener(UpdateOptions);
}
public void InitializeEntries()
{
var dropdown = GetComponent<Dropdown>();
dropdown.options.Clear();
int selected = 0;
int i = 0;
foreach (var res in Screen.resolutions.OrderByDescending(o => o.width))
{
string option = $"{res.width}x{res.height}";
if (!dropdown.options.Any(o => o.text == option))
{
dropdown.options.Add(new Dropdown.OptionData(option));
if (res.width == GameOptions.graphics.width && res.height == GameOptions.graphics.height)
selected = i;
i++;
}
}
dropdown.SetValueWithoutNotify(selected);
if (dropDownRefreshRate != null)
{
dropDownRefreshRate.InitializeEntries();
}
}
void UpdateOptions(int value)
{
string option = GetComponent<Dropdown>().options[value].text;
string[] values = option.Split('x');
GameOptions.graphics.width = int.Parse(values[0]);
GameOptions.graphics.height = int.Parse(values[1]);
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/DropDownResolution.cs.meta


fileFormatVersion: 2
guid: 8f2de5fb3ab35f0438e176c475be199c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

45
Packages/net.peeweek.game-options/Runtime/UI/DropDownTargetFramerate.cs


using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Dropdown))]
public class DropDownTargetFramerate : MonoBehaviour
{
public int[] TargetFramerates = new int[4] { -1, 15, 30, 60 };
public string InfiniteText = "Infinite";
private void OnEnable()
{
var dropdown = GetComponent<Dropdown>();
InitializeEntries(dropdown);
dropdown.onValueChanged.AddListener(UpdateOptions);
UpdateOptions(dropdown.value);
}
private void OnDisable()
{
GetComponent<Dropdown>().onValueChanged.RemoveListener(UpdateOptions);
}
public void InitializeEntries(Dropdown dropdown)
{
dropdown.options.Clear();
foreach(var framerate in TargetFramerates)
{
dropdown.options.Add(new Dropdown.OptionData(framerate == -1? InfiniteText : framerate.ToString()));
}
int current = GameOptions.graphics.targetFrameRate;
dropdown.SetValueWithoutNotify(dropdown.options.FindIndex(o => o.text == current.ToString()));
}
void UpdateOptions(int value)
{
GameOptions.graphics.targetFrameRate = TargetFramerates[value];
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/DropDownTargetFramerate.cs.meta


fileFormatVersion: 2
guid: 535744594fb97ad409f1a5ea63ccda0f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

83
Packages/net.peeweek.game-options/Runtime/UI/SliderAudioParameter.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Slider))]
public class SliderAudioParameter : MonoBehaviour
{
[Header("Audio Paramter")]
public string Parameter = "Master";
public Vector2 MinMaxParameterValue = new Vector2(-80, 0);
public bool ApplyParameter = true;
[Header("Slider")]
public Vector2 MinMaxSliderValue = new Vector2(0, 1);
[Tooltip("Logarithmic Scale (For Volume)")]
public bool LogarithmicScale = false;
public bool IntegerSliderValues = false;
private void OnEnable()
{
var slider = GetComponent<Slider>();
slider.onValueChanged.AddListener(UpdateOptions);
if (LogarithmicScale)
{
slider.minValue = 0.0f;
slider.maxValue = 1.0f;
}
else
{
slider.minValue = MinMaxSliderValue.x;
slider.maxValue = MinMaxSliderValue.y;
}
slider.wholeNumbers = IntegerSliderValues;
slider.SetValueWithoutNotify(ParameterToSlider(GameOptions.audio.GetParameter(Parameter)));
}
private void OnDisable()
{
GetComponent<Slider>().onValueChanged.RemoveListener(UpdateOptions);
}
void UpdateOptions(float value)
{
GameOptions.audio.SetParameter(Parameter,SliderToParameter(value), ApplyParameter);
}
float ParameterToSlider(float value)
{
if(LogarithmicScale)
{
return Mathf.Pow(10, value/20);
}
else
{
value = Mathf.InverseLerp(MinMaxParameterValue.x, MinMaxParameterValue.y, value);
value = Mathf.Lerp(MinMaxSliderValue.x, MinMaxSliderValue.y, value);
return value;
}
}
float SliderToParameter(float value)
{
if (LogarithmicScale)
{
return Mathf.Log10(Mathf.Max(0.0001f,value)) * 20;
}
else
{
value = Mathf.InverseLerp(MinMaxSliderValue.x, MinMaxSliderValue.y, value);
value = Mathf.Lerp(MinMaxParameterValue.x, MinMaxParameterValue.y, value);
return value;
}
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/SliderAudioParameter.cs.meta


fileFormatVersion: 2
guid: e10ab4e0553a6a74aa8a589f49e27b90
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

32
Packages/net.peeweek.game-options/Runtime/UI/SliderTargetFramerate.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Slider))]
public class SliderTargetFramerate : MonoBehaviour
{
public Vector2 MinMaxFramerate = new Vector2(15, 144);
private void OnEnable()
{
var slider = GetComponent<Slider>();
slider.onValueChanged.AddListener(UpdateOptions);
UpdateOptions(slider.value);
}
private void OnDisable()
{
GetComponent<Slider>().onValueChanged.RemoveListener(UpdateOptions);
}
void UpdateOptions(float value)
{
GameOptions.graphics.targetFrameRate = (int)value;
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/SliderTargetFramerate.cs.meta


fileFormatVersion: 2
guid: c6f044d70c5f8b848bef7d2e8c6dff5b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

43
Packages/net.peeweek.game-options/Runtime/UI/SliderTextBind.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Slider))]
public class SliderTextBind : MonoBehaviour
{
[Tooltip("Text UI")]
public Text text;
[Tooltip("Text Prefix")]
public string Prefix = "";
[Tooltip("Text Suffix")]
public string Suffix = "";
[Tooltip("Multiplies value by 100")]
public bool AsPercentage = false;
[Tooltip("Numeric format as seen in C# Standard Numeric Format Strings")]
public string NumberFormat = "F2";
private void OnEnable()
{
var slider = GetComponent<Slider>();
slider.onValueChanged.AddListener(UpdateText);
UpdateText(slider.value);
}
private void OnDisable()
{
GetComponent<Slider>().onValueChanged.RemoveListener(UpdateText);
}
void UpdateText(float value)
{
value = AsPercentage ? value * 100 : value;
text.text = $"{Prefix}{value.ToString(NumberFormat)}{Suffix}";
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/SliderTextBind.cs.meta


fileFormatVersion: 2
guid: 1b15d7d04c3c1b34fbde5a6d53578e47
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

33
Packages/net.peeweek.game-options/Runtime/UI/ToggleVSync.cs


using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace GameOptionsUtility
{
[RequireComponent(typeof(Toggle))]
public class ToggleVSync : MonoBehaviour
{
private void OnEnable()
{
GetComponent<Toggle>().onValueChanged.AddListener(UpdateOptions);
}
private void OnDisable()
{
GetComponent<Toggle>().onValueChanged.RemoveListener(UpdateOptions);
}
public void InitializeEntries()
{
GetComponent<Toggle>().isOn = GameOptions.graphics.vSync;
}
void UpdateOptions(bool value)
{
GameOptions.graphics.vSync = value;
}
}
}

11
Packages/net.peeweek.game-options/Runtime/UI/ToggleVSync.cs.meta


fileFormatVersion: 2
guid: 3d2af8e5a631fd24991bfe567b038767
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

12
Packages/net.peeweek.game-options/package.json


{
"name": "net.peeweek.game-options",
"displayName": "Game Options",
"version": "1.0.0",
"unity": "2019.3",
"description": "Game Options and UI Tools to Configure your game",
"hideInEditor": false,
"type": "tool",
"dependencies": {
"com.unity.ugui": "1.0.0"
}
}

7
Packages/net.peeweek.game-options/package.json.meta


fileFormatVersion: 2
guid: 21d027bbe209ddb429171694d6e83bcc
PackageManifestImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存