Thomas ICHÉ
5 年前
当前提交
d0f1af76
共有 78 个文件被更改,包括 2674 次插入 和 494 次删除
-
934Assets/VisualEffectSamples.unity
-
4Packages/manifest.json
-
17Packages/net.peeweek.game-options/Editor/MenuItems.cs
-
291Packages/net.peeweek.game-options/Prefabs/Game Options Panel.prefab
-
36Packages/net.peeweek.game-options/Prefabs/GameOptionEntryBool Variant.prefab
-
51Packages/net.peeweek.game-options/Prefabs/GameOptionEntryDropDown Variant.prefab
-
32Packages/net.peeweek.game-options/Prefabs/GameOptionEntrySlider Variant.prefab
-
94Packages/net.peeweek.game-options/Prefabs/GameOptionHeader.prefab
-
4Packages/net.peeweek.game-options/Prefabs/Graphics/Target Framerate DropDown Variant.prefab
-
26Packages/net.peeweek.game-options/Prefabs/Graphics/VSync Toggle Variant.prefab
-
15Packages/net.peeweek.game-options/Runtime/GameOptions.asmdef
-
51Packages/net.peeweek.game-options/Runtime/GameOptions.cs
-
2ProjectSettings/HDRPProjectSettings.asset
-
4ProjectSettings/ProjectVersion.txt
-
15Packages/net.peeweek.game-options/Runtime/Core/AudioOption.cs
-
5Packages/net.peeweek.game-options/Runtime/Core/UI/ButtonApplyOptions.cs
-
6Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownRefreshRate.cs
-
6Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownResolution.cs
-
4Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownTargetFramerate.cs
-
4Packages/net.peeweek.game-options/Runtime/Core/UI/SliderAudioParameter.cs
-
144Packages/net.peeweek.game-options/Prefabs/Graphics/Quality DropDown Variant.prefab
-
7Packages/net.peeweek.game-options/Prefabs/Graphics/Quality DropDown Variant.prefab.meta
-
8Packages/net.peeweek.game-options/Prefabs/HDRP.meta
-
4Packages/net.peeweek.game-options/Runtime/AssemblyInfo.cs
-
11Packages/net.peeweek.game-options/Runtime/AssemblyInfo.cs.meta
-
8Packages/net.peeweek.game-options/Runtime/Core.meta
-
54Packages/net.peeweek.game-options/Runtime/GameOption.cs
-
11Packages/net.peeweek.game-options/Runtime/GameOption.cs.meta
-
8Packages/net.peeweek.game-options/Runtime/HDRP.meta
-
8Packages/net.peeweek.game-options/Runtime/Utility.meta
-
503Packages/net.peeweek.game-options/Prefabs/HDRP/Game Options Panel HDRP Variant.prefab
-
7Packages/net.peeweek.game-options/Prefabs/HDRP/Game Options Panel HDRP Variant.prefab.meta
-
145Packages/net.peeweek.game-options/Prefabs/HDRP/HDRP AntiAliasing Dropdown Variant.prefab
-
7Packages/net.peeweek.game-options/Prefabs/HDRP/HDRP AntiAliasing Dropdown Variant.prefab.meta
-
85Packages/net.peeweek.game-options/Runtime/Core/GraphicOption.cs
-
48Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownFullScreenMode.cs
-
42Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownQuality.cs
-
11Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownQuality.cs.meta
-
28Packages/net.peeweek.game-options/Runtime/Core/UI/HighlightEntry.cs
-
11Packages/net.peeweek.game-options/Runtime/Core/UI/HighlightEntry.cs.meta
-
38Packages/net.peeweek.game-options/Runtime/Core/UI/SliderTargetFramerate.cs
-
48Packages/net.peeweek.game-options/Runtime/Core/UI/ToggleVSync.cs
-
57Packages/net.peeweek.game-options/Runtime/HDRP/HDRPCameraOption.cs
-
11Packages/net.peeweek.game-options/Runtime/HDRP/HDRPCameraOption.cs.meta
-
21Packages/net.peeweek.game-options/Runtime/HDRP/HDRPGameOptionsManagedCamera.cs
-
11Packages/net.peeweek.game-options/Runtime/HDRP/HDRPGameOptionsManagedCamera.cs.meta
-
8Packages/net.peeweek.game-options/Runtime/HDRP/UI.meta
-
48Packages/net.peeweek.game-options/Runtime/HDRP/UI/HDRPAntiAliasingDropdown.cs
-
11Packages/net.peeweek.game-options/Runtime/HDRP/UI/HDRPAntiAliasingDropdown.cs.meta
-
63Packages/net.peeweek.game-options/Runtime/Utility/DropDownAutoScrollOnChange.cs
-
11Packages/net.peeweek.game-options/Runtime/Utility/DropDownAutoScrollOnChange.cs.meta
-
90Packages/net.peeweek.game-options/Runtime/GraphicOptions.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/AudioOption.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/AudioOption.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/GraphicOption.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/ButtonApplyOptions.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/ButtonApplyOptions.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownFullScreenMode.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownRefreshRate.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownRefreshRate.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownResolution.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownResolution.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownTargetFramerate.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/DropDownTargetFramerate.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/SliderAudioParameter.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/SliderAudioParameter.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/SliderTargetFramerate.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/SliderTextBind.cs
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/SliderTextBind.cs.meta
-
0/Packages/net.peeweek.game-options/Runtime/Core/UI/ToggleVSync.cs.meta
934
Assets/VisualEffectSamples.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
m_EditorVersion: 2019.3.0f5 |
|||
m_EditorVersionWithRevision: 2019.3.0f5 (44796c9d3c2c) |
|||
m_EditorVersion: 2019.3.0f6 |
|||
m_EditorVersionWithRevision: 2019.3.0f6 (27ab2135bccf) |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &3663895412843452346 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 6832880182756358787} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: c32b486b1c171ec4a826d99255a5998b, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
--- !u!1001 &6832880181390369953 |
|||
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: Graphics Quality |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3523361657030796005, guid: 22ac6a1da279db94ebffda71a105c766, |
|||
type: 3} |
|||
propertyPath: m_Name |
|||
value: Quality 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: -581 |
|||
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 &6832880182756358787 stripped |
|||
GameObject: |
|||
m_CorrespondingSourceObject: {fileID: 1366023714, guid: 22ac6a1da279db94ebffda71a105c766, |
|||
type: 3} |
|||
m_PrefabInstance: {fileID: 6832880181390369953} |
|||
m_PrefabAsset: {fileID: 0} |
|
|||
fileFormatVersion: 2 |
|||
guid: 58add5d94450e2545ab78e767ddb2618 |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: bed841c5c964ea54b87f511fe8f34827 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Reflection; |
|||
using System.Runtime.CompilerServices; |
|||
|
|||
[assembly: InternalsVisibleTo("GameOptions.Editor")] |
|
|||
fileFormatVersion: 2 |
|||
guid: 7685114ea45ea8742b281976a6044996 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 5e73bfd0cf4a195419f4e5075737ce27 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using UnityEngine; |
|||
|
|||
namespace GameOptionsUtility |
|||
{ |
|||
public abstract class GameOption : ScriptableObject |
|||
{ |
|||
public static List<GameOption> all { get { return s_GameOptions.Values.ToList(); } } |
|||
|
|||
static Dictionary<Type, GameOption> s_GameOptions; |
|||
|
|||
public static T Get<T>() where T : GameOption |
|||
{ |
|||
if (s_GameOptions == null) |
|||
s_GameOptions = new Dictionary<Type, GameOption>(); |
|||
|
|||
Type t = typeof(T); |
|||
if (!s_GameOptions.ContainsKey(t)) |
|||
Add(t); |
|||
|
|||
return (T)s_GameOptions[t]; |
|||
|
|||
|
|||
} |
|||
internal static void Add(Type t) |
|||
{ |
|||
if (t.IsSubclassOf(typeof(GameOption)) && !t.IsAbstract) |
|||
{ |
|||
if (s_GameOptions == null) |
|||
s_GameOptions = new Dictionary<Type, GameOption>(); |
|||
|
|||
if (!s_GameOptions.ContainsKey(t)) |
|||
s_GameOptions.Add(t, LoadOrDefault(t)); |
|||
} |
|||
} |
|||
|
|||
static GameOption LoadOrDefault(Type t) |
|||
{ |
|||
GameOption option = Resources.Load<GameOption>(t.Name); |
|||
|
|||
if (option == null) |
|||
{ |
|||
option = (GameOption)CreateInstance(t); |
|||
} |
|||
|
|||
return option; |
|||
} |
|||
|
|||
public abstract void Apply(); |
|||
} |
|||
} |
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: c9f173a409c60104984f0a9d2898e0bd |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: e1285ccd61f479342b6fc390046d1f09 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 92c6fb5868d98604d9799e7a07675897 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1001 &2409003269379756319 |
|||
PrefabInstance: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 2 |
|||
m_Modification: |
|||
m_TransformParent: {fileID: 0} |
|||
m_Modifications: |
|||
- target: {fileID: 3117207791764329568, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -1155.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3117207791962351148, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -1059.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3117207792212204642, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -963.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3159204167368531650, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -673.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3555777956663233269, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Navigation.m_Mode |
|||
value: 4 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3555777956663233269, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Navigation.m_SelectOnUp |
|||
value: |
|||
objectReference: {fileID: 6655859485672983886} |
|||
- target: {fileID: 4125400877306455389, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -867.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 6206056638489798896, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -771.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955858, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Name |
|||
value: Game Options Panel HDRP Variant |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalPosition.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalPosition.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalPosition.z |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.z |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.w |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_RootOrder |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalEulerAnglesHint.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalEulerAnglesHint.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_LocalEulerAnglesHint.z |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.x |
|||
value: -160 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.y |
|||
value: -160 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Pivot.x |
|||
value: 0.5 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718865955859, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Pivot.y |
|||
value: 0.5 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718898694172, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737718898694172, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737719733764356, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737719733764356, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737719733764356, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737719733764356, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737719733764357, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Enabled |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720102594775, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720102594775, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720292935941, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: 0.00036621094 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720292935941, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.y |
|||
value: 1184.6 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720359943307, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720359943307, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720359943307, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720528820143, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720528820143, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720674481469, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -6.000004 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720674481469, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.y |
|||
value: -188 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720684796362, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720684796362, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720684796363, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Value |
|||
value: 0.99999964 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720684796363, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_Size |
|||
value: 0.09707919 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720726475844, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720726475844, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 8012737720726475844, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836310265211, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836310265211, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836310265211, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836514213520, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836514213520, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836818691449, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836818691449, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836818691449, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836832744670, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748836832744670, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748837154760338, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748837154760338, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748837166716725, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748837166716725, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 9020748837166716725, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
m_RemovedComponents: [] |
|||
m_SourcePrefab: {fileID: 100100000, guid: d01cd2ed5d4e4144fb011b91aba701db, type: 3} |
|||
--- !u!224 &5646538894050433050 stripped |
|||
RectTransform: |
|||
m_CorrespondingSourceObject: {fileID: 8012737720292935941, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
m_PrefabInstance: {fileID: 2409003269379756319} |
|||
m_PrefabAsset: {fileID: 0} |
|||
--- !u!114 &6655859485672983886 stripped |
|||
MonoBehaviour: |
|||
m_CorrespondingSourceObject: {fileID: 9020748836512029777, guid: d01cd2ed5d4e4144fb011b91aba701db, |
|||
type: 3} |
|||
m_PrefabInstance: {fileID: 2409003269379756319} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 0} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
--- !u!1001 &5338066524666798196 |
|||
PrefabInstance: |
|||
m_ObjectHideFlags: 0 |
|||
serializedVersion: 2 |
|||
m_Modification: |
|||
m_TransformParent: {fileID: 5646538894050433050} |
|||
m_Modifications: |
|||
- target: {fileID: 2579412950127336563, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_Name |
|||
value: HDRP AntiAliasing Dropdown |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3046795431566875011, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.x |
|||
value: 8 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalPosition.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalPosition.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalPosition.z |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.z |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalRotation.w |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_RootOrder |
|||
value: 12 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalEulerAnglesHint.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalEulerAnglesHint.y |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_LocalEulerAnglesHint.z |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchoredPosition.y |
|||
value: -576 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_SizeDelta.y |
|||
value: 96 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.x |
|||
value: 0 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchorMin.y |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.x |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_AnchorMax.y |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_Pivot.x |
|||
value: 0.5 |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3400049622281516636, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, |
|||
type: 3} |
|||
propertyPath: m_Pivot.y |
|||
value: 1 |
|||
objectReference: {fileID: 0} |
|||
m_RemovedComponents: [] |
|||
m_SourcePrefab: {fileID: 100100000, guid: f7ec13daf8ecfe8439bcf2cd92f174e3, type: 3} |
|
|||
fileFormatVersion: 2 |
|||
guid: b3aca2c58eb2ef044a1214e167e81c7d |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!114 &2146521203135749793 |
|||
MonoBehaviour: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 1382205599194243252} |
|||
m_Enabled: 1 |
|||
m_EditorHideFlags: 0 |
|||
m_Script: {fileID: 11500000, guid: 097f29772a92be1438562596e1567766, type: 3} |
|||
m_Name: |
|||
m_EditorClassIdentifier: |
|||
ApplyImmediately: 1 |
|||
--- !u!1001 &1382205597875486358 |
|||
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: Anti Aliasing |
|||
objectReference: {fileID: 0} |
|||
- target: {fileID: 3523361657030796005, guid: 22ac6a1da279db94ebffda71a105c766, |
|||
type: 3} |
|||
propertyPath: m_Name |
|||
value: HDRP AntiAliasing 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: -576 |
|||
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 &1382205599194243252 stripped |
|||
GameObject: |
|||
m_CorrespondingSourceObject: {fileID: 1366023714, guid: 22ac6a1da279db94ebffda71a105c766, |
|||
type: 3} |
|||
m_PrefabInstance: {fileID: 1382205597875486358} |
|||
m_PrefabAsset: {fileID: 0} |
|
|||
fileFormatVersion: 2 |
|||
guid: f7ec13daf8ecfe8439bcf2cd92f174e3 |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
|
|||
namespace GameOptionsUtility |
|||
{ |
|||
internal class GraphicOption : GameOption |
|||
{ |
|||
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 const string quality = prefix + "Quality"; |
|||
|
|||
} |
|||
|
|||
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); } |
|||
} |
|||
public int quality |
|||
{ |
|||
get { return PlayerPrefs.GetInt(Preferences.quality, QualitySettings.GetQualityLevel()); } |
|||
set { PlayerPrefs.SetInt(Preferences.quality, value); QualitySettings.SetQualityLevel(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; |
|||
|
|||
public override void Apply() |
|||
{ |
|||
Screen.SetResolution(width, height, fullScreenMode, refreshRate); |
|||
QualitySettings.vSyncCount = vSync ? 1 : 0; |
|||
Application.targetFrameRate = targetFrameRate; |
|||
} |
|||
} |
|||
} |
|||
|
|
|||
using System.Linq; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
|
|||
namespace GameOptionsUtility |
|||
{ |
|||
[RequireComponent(typeof(Dropdown))] |
|||
public class DropDownFullScreenMode : MonoBehaviour |
|||
{ |
|||
public Dropdown refreshRateDropdown; |
|||
|
|||
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 (Exclusive)")); |
|||
dropdown.options.Add(new Dropdown.OptionData("Full Screen (Windowed)")); |
|||
dropdown.options.Add(new Dropdown.OptionData("Maximized Window")); |
|||
dropdown.options.Add(new Dropdown.OptionData("Window")); |
|||
dropdown.SetValueWithoutNotify((int)GameOption.Get<GraphicOption>().fullScreenMode); |
|||
} |
|||
|
|||
void UpdateOptions(int value) |
|||
{ |
|||
GameOption.Get<GraphicOption>().fullScreenMode = (FullScreenMode)value; |
|||
if (refreshRateDropdown != null) |
|||
{ |
|||
refreshRateDropdown.interactable = (value == 0); |
|||
refreshRateDropdown.captionText.CrossFadeAlpha(value > 0 ? 0.1f : 1.0f, refreshRateDropdown.colors.fadeDuration, true); |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|
|||
using System.Linq; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
|
|||
namespace GameOptionsUtility |
|||
{ |
|||
[RequireComponent(typeof(Dropdown))] |
|||
public class DropDownQuality : 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(); |
|||
|
|||
foreach(var quality in QualitySettings.names) |
|||
dropdown.options.Add(new Dropdown.OptionData(quality)); |
|||
|
|||
int current = GameOption.Get<GraphicOption>().quality; |
|||
dropdown.SetValueWithoutNotify(current); |
|||
} |
|||
|
|||
void UpdateOptions(int value) |
|||
{ |
|||
GameOption.Get<GraphicOption>().quality = value; |
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: c32b486b1c171ec4a826d99255a5998b |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.EventSystems; |
|||
using UnityEngine.UI; |
|||
|
|||
[RequireComponent(typeof(Selectable))] |
|||
public class HighlightEntry : MonoBehaviour, ISelectHandler, IDeselectHandler |
|||
{ |
|||
public Image MenuEntryBackgroundImage; |
|||
public Color Normal = new Color(1.0f, 1.0f, 1.0f, 1.0f); |
|||
public Color Selected = new Color(2.0f, 2.0f, 2.0f, 1.0f); |
|||
|
|||
public void OnEnable() |
|||
{ |
|||
MenuEntryBackgroundImage.color = Normal; |
|||
} |
|||
|
|||
public void OnDeselect(BaseEventData eventData) |
|||
{ |
|||
MenuEntryBackgroundImage.color = Normal; |
|||
} |
|||
|
|||
public void OnSelect(BaseEventData eventData) |
|||
{ |
|||
MenuEntryBackgroundImage.color = Selected; |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: b17b4f0ede176b345af395f45b7e6c9f |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
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>(); |
|||
InitializeEntries(slider); |
|||
slider.onValueChanged.AddListener(UpdateOptions); |
|||
UpdateOptions(slider.value); |
|||
} |
|||
|
|||
private void OnDisable() |
|||
{ |
|||
GetComponent<Slider>().onValueChanged.RemoveListener(UpdateOptions); |
|||
} |
|||
|
|||
void InitializeEntries(Slider slider) |
|||
{ |
|||
slider.value = GameOption.Get<GraphicOption>().targetFrameRate; |
|||
} |
|||
|
|||
void UpdateOptions(float value) |
|||
{ |
|||
GameOption.Get<GraphicOption>().targetFrameRate = (int)value; |
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|
|||
using System.Linq; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
|
|||
namespace GameOptionsUtility |
|||
{ |
|||
[RequireComponent(typeof(Toggle))] |
|||
public class ToggleVSync : MonoBehaviour |
|||
{ |
|||
public Dropdown targetFrameRateDropdown; |
|||
|
|||
private void OnEnable() |
|||
{ |
|||
InitializeEntries(); |
|||
GetComponent<Toggle>().onValueChanged.AddListener(UpdateOptions); |
|||
UpdateTargetFramerate(GameOption.Get<GraphicOption>().vSync); |
|||
} |
|||
|
|||
private void OnDisable() |
|||
{ |
|||
GetComponent<Toggle>().onValueChanged.RemoveListener(UpdateOptions); |
|||
} |
|||
|
|||
public void InitializeEntries() |
|||
{ |
|||
GetComponent<Toggle>().isOn = GameOption.Get<GraphicOption>().vSync; |
|||
} |
|||
|
|||
void UpdateOptions(bool value) |
|||
{ |
|||
GameOption.Get<GraphicOption>().vSync = value; |
|||
UpdateTargetFramerate(value); |
|||
} |
|||
|
|||
void UpdateTargetFramerate(bool value) |
|||
{ |
|||
if (targetFrameRateDropdown != null) |
|||
{ |
|||
targetFrameRateDropdown.interactable = !value; |
|||
targetFrameRateDropdown.captionText.CrossFadeAlpha(value ? 0.1f : 1.0f, targetFrameRateDropdown.colors.fadeDuration, true); |
|||
} |
|||
|
|||
} |
|||
} |
|||
|
|||
} |
|||
|
|
|||
#if GAME_OPTIONS_HDRP
|
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.Rendering.HighDefinition; |
|||
|
|||
namespace GameOptionsUtility.HDRP |
|||
{ |
|||
public class HDRPCameraOption : GameOption |
|||
{ |
|||
public class Preferences |
|||
{ |
|||
public const string prefix = GameOptions.Preferences.prefix + "HDRP."; |
|||
public const string antialiasing = prefix + "AntiAliasing"; |
|||
} |
|||
|
|||
static List<HDAdditionalCameraData> s_Cameras; |
|||
|
|||
public HDAdditionalCameraData.AntialiasingMode antiAliasing |
|||
{ |
|||
get { return (HDAdditionalCameraData.AntialiasingMode)PlayerPrefs.GetInt(Preferences.antialiasing, (int)HDAdditionalCameraData.AntialiasingMode.TemporalAntialiasing); } |
|||
set { PlayerPrefs.SetInt(Preferences.antialiasing, (int)value); } |
|||
} |
|||
|
|||
|
|||
public static void AddCamera(HDAdditionalCameraData camera) |
|||
{ |
|||
if (s_Cameras == null) |
|||
s_Cameras = new List<HDAdditionalCameraData>(); |
|||
|
|||
if (!s_Cameras.Contains(camera)) |
|||
s_Cameras.Add(camera); |
|||
|
|||
Get<HDRPCameraOption>().Apply(); |
|||
} |
|||
|
|||
public static void RemoveCamera(HDAdditionalCameraData camera) |
|||
{ |
|||
if (s_Cameras == null) |
|||
s_Cameras = new List<HDAdditionalCameraData>(); |
|||
|
|||
if (s_Cameras.Contains(camera)) |
|||
s_Cameras.Remove(camera); |
|||
} |
|||
|
|||
public override void Apply() |
|||
{ |
|||
if (s_Cameras == null) |
|||
return; |
|||
|
|||
foreach (var camera in s_Cameras) |
|||
{ |
|||
camera.antialiasing = antiAliasing; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
#endif
|
|
|||
fileFormatVersion: 2 |
|||
guid: 28bc2d7284c49294b94b065ca17abef8 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
#if GAME_OPTIONS_HDRP
|
|||
using UnityEngine; |
|||
using UnityEngine.Rendering.HighDefinition; |
|||
|
|||
namespace GameOptionsUtility.HDRP |
|||
{ |
|||
[RequireComponent(typeof(HDAdditionalCameraData))] |
|||
public class HDRPGameOptionsManagedCamera : MonoBehaviour |
|||
{ |
|||
private void OnEnable() |
|||
{ |
|||
HDRPCameraOption.AddCamera(GetComponent<HDAdditionalCameraData>()); |
|||
} |
|||
|
|||
private void OnDisable() |
|||
{ |
|||
HDRPCameraOption.RemoveCamera(GetComponent<HDAdditionalCameraData>()); |
|||
} |
|||
} |
|||
} |
|||
#endif
|
|
|||
fileFormatVersion: 2 |
|||
guid: 8f22350d987b53b468c6eac2a04e973a |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 13388c96dd131a84da09e7a32cf16b13 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
#if GAME_OPTIONS_HDRP
|
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.Rendering.HighDefinition; |
|||
|
|||
namespace GameOptionsUtility.HDRP |
|||
{ |
|||
[RequireComponent(typeof(Dropdown))] |
|||
public class HDRPAntiAliasingDropdown : MonoBehaviour |
|||
{ |
|||
public bool ApplyImmediately = true; |
|||
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("None")); |
|||
dropdown.options.Add(new Dropdown.OptionData("FXAA")); |
|||
dropdown.options.Add(new Dropdown.OptionData("TAA")); |
|||
dropdown.options.Add(new Dropdown.OptionData("SMAA")); |
|||
dropdown.SetValueWithoutNotify((int)GameOption.Get<HDRPCameraOption>().antiAliasing); |
|||
} |
|||
|
|||
void UpdateOptions(int value) |
|||
{ |
|||
var option = GameOption.Get<HDRPCameraOption>(); |
|||
option.antiAliasing = (HDAdditionalCameraData.AntialiasingMode)value; |
|||
|
|||
if (ApplyImmediately) |
|||
option.Apply(); |
|||
} |
|||
} |
|||
} |
|||
#endif
|
|||
|
|||
|
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: 097f29772a92be1438562596e1567766 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
/* DropDownAutoScrollOnChange |
|||
* -------------------------- |
|||
* Updates scrolling when selection changes inside a drop down panel when selection changes. |
|||
* This scripts patches the inability of ScrollRects to handle correct scrolling upon selection change. |
|||
* |
|||
* Adepted From: |
|||
* https://answers.unity.com/questions/1169028/unity-dropdown-doesnt-scroll-when-navigating-with.html
|
|||
*/ |
|||
using UnityEngine; |
|||
using UnityEngine.UI; |
|||
using UnityEngine.EventSystems; |
|||
|
|||
namespace GameOptionsUtility.Utility |
|||
{ |
|||
[RequireComponent(typeof(ScrollRect))] |
|||
internal class DropDownAutoScrollOnChange : MonoBehaviour |
|||
{ |
|||
RectTransform scrollRectTransform; |
|||
RectTransform contentPanel; |
|||
RectTransform selectedRectTransform; |
|||
GameObject lastSelected; |
|||
|
|||
void Start() |
|||
{ |
|||
scrollRectTransform = GetComponent<RectTransform>(); |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
// Lazy Get
|
|||
if (contentPanel == null) |
|||
contentPanel = GetComponent<ScrollRect>().content; |
|||
|
|||
GameObject selected = EventSystem.current.currentSelectedGameObject; |
|||
|
|||
if (selected == null) |
|||
return; |
|||
|
|||
if (selected.transform.parent != contentPanel.transform) |
|||
return; |
|||
|
|||
if (selected == lastSelected) |
|||
return; |
|||
|
|||
selectedRectTransform = selected.GetComponent<RectTransform>(); |
|||
|
|||
float yPos = -(selectedRectTransform.localPosition.y) - (selectedRectTransform.rect.height / 2); |
|||
float yContent = contentPanel.anchoredPosition.y; |
|||
float maxHeight = scrollRectTransform.rect.height - selectedRectTransform.rect.height; |
|||
float delta = yPos - yContent; |
|||
|
|||
if (delta < 0) |
|||
yContent = yPos; |
|||
else if (delta > maxHeight) |
|||
yContent = yPos - maxHeight; |
|||
else |
|||
return; |
|||
contentPanel.anchoredPosition = new Vector2(contentPanel.anchoredPosition.x, yContent); |
|||
|
|||
lastSelected = selected; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: c1c514756d7937947a07c73de5951227 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
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() |
|||
{ |
|||
QualitySettings.vSyncCount = vSync ? 1 : 0; |
|||
Application.targetFrameRate = targetFrameRate; |
|||
Screen.SetResolution(width, height, fullScreenMode, refreshRate); |
|||
} |
|||
} |
|||
} |
|||
|
撰写
预览
正在加载...
取消
保存
Reference in new issue