浏览代码

Additional work

/demo-work
André McGrail 5 年前
当前提交
9e0f924d
共有 19 个文件被更改,包括 2143 次插入329 次删除
  1. 834
      Assets/Objects/UI/MainMenuUI.prefab
  2. 3
      Assets/Scripts/GameSystem/AppSettings.cs
  3. 381
      Assets/scenes/MainMenu.unity
  4. 4
      Packages/com.verasl.water-system/Scripts/Rendering/WaterSystemFeature.cs
  5. 4
      ProjectSettings/ProjectVersion.txt
  6. 8
      Assets/Scripts/UI.meta
  7. 8
      Assets/Shaders/UI.meta
  8. 37
      Assets/Textures/New Render Texture.renderTexture
  9. 8
      Assets/Textures/New Render Texture.renderTexture.meta
  10. 48
      Assets/Scripts/UI/MainMenuLayout.cs
  11. 11
      Assets/Scripts/UI/MainMenuLayout.cs.meta
  12. 40
      Assets/Shaders/UI/MainMenuPanel.mat
  13. 8
      Assets/Shaders/UI/MainMenuPanel.mat.meta
  14. 389
      Assets/Shaders/UI/UIPanelFade.shader
  15. 9
      Assets/Shaders/UI/UIPanelFade.shader.meta
  16. 670
      Assets/Shaders/UI/UIPanelFade.shadergraph
  17. 10
      Assets/Shaders/UI/UIPanelFade.shadergraph.meta

834
Assets/Objects/UI/MainMenuUI.prefab
文件差异内容过多而无法显示
查看文件

3
Assets/Scripts/GameSystem/AppSettings.cs


maxScale = renderScale;
#if !UNITY_EDITOR
UniversalRenderPipeline.asset.renderScale = renderScale;
#else
Debug.LogWarning(
$"{this} Render Scale {maxScale} not enabled in Editor, using {UniversalRenderPipeline.asset.renderScale}.");
#endif
}

381
Assets/scenes/MainMenu.unity


debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &852178392
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 852178394}
- component: {fileID: 852178393}
- component: {fileID: 852178395}
m_Layer: 0
m_Name: MenuCamera
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &852178393
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 852178392}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 45e653bab7fb20e499bda25e1b646fea, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ExcludedPropertiesInInspector:
- m_Script
m_LockStageInInspector:
m_StreamingVersion: 20170927
m_Priority: 10
m_StandbyUpdate: 2
m_LookAt: {fileID: 0}
m_Follow: {fileID: 0}
m_Lens:
FieldOfView: 45.781105
OrthographicSize: 10
NearClipPlane: 0.5
FarClipPlane: 1500
Dutch: 0
LensShift: {x: 0, y: 0}
m_Transitions:
m_BlendHint: 0
m_InheritPosition: 0
m_OnCameraLive:
m_PersistentCalls:
m_Calls: []
m_LegacyBlendHint: 0
m_ComponentOwner: {fileID: 1211864296}
--- !u!4 &852178394
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 852178392}
m_LocalRotation: {x: -0.02605303, y: 0.5285554, z: 0.01593443, w: 0.84834933}
m_LocalPosition: {x: 1.9, y: 0.6, z: 50.09}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1211864296}
m_Father: {fileID: 1900948176}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: -3.5, y: 63.85, z: -0.029000001}
--- !u!114 &852178395
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 852178392}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 172515602e62fb746b5d573b38a5fe58, type: 3}
m_Name:
m_EditorClassIdentifier:
isGlobal: 1
priority: 50
blendDistance: 0
weight: 1
sharedProfile: {fileID: 11400000, guid: c439f0790281941f2988c62fa7fe2806, type: 2}
--- !u!1 &1017609894
GameObject:
m_ObjectHideFlags: 0

m_Depth: -5
m_CullingMask:
serializedVersion: 2
m_Bits: 2147487543
m_Bits: 2147487511
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0

m_RequiresDepthTextureOption: 2
m_RequiresOpaqueTextureOption: 2
m_CameraType: 0
m_CameraOutput: 1
m_CameraOutput: 0
m_Cameras: []
m_RendererIndex: -1
m_VolumeLayerMask:

m_CameraActivatedEvent:
m_PersistentCalls:
m_Calls: []
--- !u!1 &1211864295
GameObject:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1211864296}
- component: {fileID: 1211864299}
- component: {fileID: 1211864297}
m_Layer: 0
m_Name: cm
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1211864296
Transform:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211864295}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -60.161415, y: 8.881636, z: -68.91155}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 852178394}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1211864297
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211864295}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 68bb026fafb42b14791938953eaace77, type: 3}
m_Name:
m_EditorClassIdentifier:
m_NoiseProfile: {fileID: 11400000, guid: 46965f9cbaf525742a6da4c2172a99cd, type: 2}
m_AmplitudeGain: 0.25
m_FrequencyGain: 0.5
mNoiseOffsets: {x: -242.97891, y: 165.04227, z: 782.3706}
--- !u!114 &1211864299
MonoBehaviour:
m_ObjectHideFlags: 3
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1211864295}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ac0b09e7857660247b1477e93731de29, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1603626283
GameObject:
m_ObjectHideFlags: 1

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1017609898}
- {fileID: 852178394}
--- !u!1001 &8187458271002221754
--- !u!1001 &7907029379336488239
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2

- target: {fileID: 3093802692063802918, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608248, guid: 56de8e58d1a974ab880e61b104d7ef98,
value: MainMenuLevel
value: MainMenuUI
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
value: 2
value: 1
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029380085608247, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 5772596621923325528, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029378987110434, guid: 56de8e58d1a974ab880e61b104d7ef98,
type: 3}
propertyPath: m_Camera
value:
objectReference: {fileID: 1017609897}
- target: {fileID: 7907029379772049940, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalPosition.x
value: 6.25
propertyPath: m_AnchorMin.y
value: 0
- target: {fileID: 5772596621923325528, guid: 705cc40ed7b2348689ba68fd4bc915b3,
- target: {fileID: 7907029379772049940, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalPosition.z
value: 50
propertyPath: m_AnchorMax.y
value: 0
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 705cc40ed7b2348689ba68fd4bc915b3, type: 3}
--- !u!1001 &8259339288747036694
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 8259339289570605569, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029379772049940, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_Name
value: MainMenuUI
propertyPath: m_AnchoredPosition.x
value: 0
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029379772049940, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalPosition.x
propertyPath: m_AnchoredPosition.y
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029379772049940, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalPosition.y
propertyPath: m_SizeDelta.x
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378219194938, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalPosition.z
propertyPath: m_AnchorMin.y
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378219194938, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalRotation.x
propertyPath: m_AnchorMax.y
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378219194938, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalRotation.y
propertyPath: m_AnchoredPosition.x
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378219194938, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalRotation.z
propertyPath: m_AnchoredPosition.y
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378219194938, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalRotation.w
value: 1
propertyPath: m_SizeDelta.x
value: 0
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378208296543, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_RootOrder
value: 1
propertyPath: m_AnchorMin.y
value: 0
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378208296543, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalEulerAnglesHint.x
propertyPath: m_AnchorMax.y
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378208296543, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalEulerAnglesHint.y
propertyPath: m_AnchoredPosition.x
- target: {fileID: 8259339289570605582, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378208296543, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_LocalEulerAnglesHint.z
propertyPath: m_AnchoredPosition.y
- target: {fileID: 8259339288555463963, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 7907029378208296543, guid: 56de8e58d1a974ab880e61b104d7ef98,
propertyPath: m_Camera
value:
objectReference: {fileID: 1017609897}
- target: {fileID: 8259339288555463963, guid: 56de8e58d1a974ab880e61b104d7ef98,
type: 3}
propertyPath: m_AdditionalShaderChannelsFlag
value: 25
propertyPath: m_SizeDelta.x
value: 0
- target: {fileID: 8259339289385500461, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 1648131860832538109, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339289385500461, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 1648131860832538109, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339289385500461, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 1648131860832538109, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339289385500461, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 1648131860832538109, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339289385500461, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 1648131860832538109, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287712575235, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3968703457030355502, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287712575235, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3968703457030355502, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287712575235, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3968703457030355502, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287712575235, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3968703457030355502, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287712575235, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 3968703457030355502, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287694343014, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 9185173147700347331, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287694343014, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 9185173147700347331, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287694343014, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 9185173147700347331, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287694343014, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 9185173147700347331, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339287694343014, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 9185173147700347331, guid: 56de8e58d1a974ab880e61b104d7ef98,
- target: {fileID: 8259339288555463961, guid: 56de8e58d1a974ab880e61b104d7ef98,
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 56de8e58d1a974ab880e61b104d7ef98, type: 3}
--- !u!1001 &8187458271002221754
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 3093802692063802918, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_Name
value: MainMenuLevel
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
propertyPath: m_Enabled
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalRotation.w
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3093802692063803097, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5772596621923325528, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalPosition.x
value: 6.25
objectReference: {fileID: 0}
- target: {fileID: 5772596621923325528, guid: 705cc40ed7b2348689ba68fd4bc915b3,
type: 3}
propertyPath: m_LocalPosition.z
value: 50
objectReference: {fileID: 0}
m_SourcePrefab: {fileID: 100100000, guid: 56de8e58d1a974ab880e61b104d7ef98, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 705cc40ed7b2348689ba68fd4bc915b3, type: 3}

4
Packages/com.verasl.water-system/Scripts/Rendering/WaterSystemFeature.cs


return;
}
var camType = renderingData.cameraData.camera.cameraType;
if(camType != CameraType.Game && camType != CameraType.SceneView)
return;
Vector3 position = renderingData.cameraData.camera.transform.position;
position.y = 0;
Matrix4x4 matrix = Matrix4x4.TRS(position, Quaternion.identity, Vector3.one * 100f);

4
ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2019.3.0b6
m_EditorVersionWithRevision: 2019.3.0b6 (0612c96692fb)
m_EditorVersion: 2019.3.0b9
m_EditorVersionWithRevision: 2019.3.0b9 (de32b4c0dd7a)

8
Assets/Scripts/UI.meta


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

8
Assets/Shaders/UI.meta


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

37
Assets/Textures/New Render Texture.renderTexture


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!84 &8400000
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: New Render Texture
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
serializedVersion: 3
m_Width: 960
m_Height: 540
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 2
m_ColorFormat: 75
m_MipMap: 1
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 2
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1

8
Assets/Textures/New Render Texture.renderTexture.meta


fileFormatVersion: 2
guid: 8aefab8fa9e464bc6a46561ec5f81b5a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

48
Assets/Scripts/UI/MainMenuLayout.cs


using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MainMenuLayout : MonoBehaviour
{
public UIPopOpen[] catergories;
public VerticalLayoutGroup layoutGroup;
private void OnEnable()
{
foreach (var popOpen in catergories)
{
popOpen.button.onClick.AddListener(delegate { ClickedButton(popOpen); });
}
}
private void OnDisable()
{
foreach (var popOpen in catergories)
{
popOpen.button.onClick.RemoveListener(delegate { ClickedButton(popOpen); });
}
}
void ClickedButton(UIPopOpen catergory)
{
foreach (var cat in catergories)
{
if (cat == catergory)
{
cat.state = !cat.state;
cat.panel.sizeDelta = new Vector2(0f, cat.state ? 600f : 0f);
layoutGroup.padding = new RectOffset(50, 50, cat.state ? 0 : 150, 0);
}
}
}
[Serializable]
public class UIPopOpen
{
public Button button;
public RectTransform panel;
public bool state;
}
}

11
Assets/Scripts/UI/MainMenuLayout.cs.meta


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

40
Assets/Shaders/UI/MainMenuPanel.mat


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: MainMenuPanel
m_Shader: {fileID: 4800000, guid: 017e3585791a14398a1019d64e6c22d5, type: 3}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses:
- ALWAYS
- SHADOWCASTER
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- BOOLEAN_6EC3160E: 0
- Vector1_5A14D1F: 0.5
- Vector1_68A27D51: 0
- Vector1_7563C2A4: -0.439
- Vector1_C4B0954B: 0.25
m_Colors:
- Colorize: {r: 0, g: 0, b: 0, a: 0}
- _Color: {r: 0, g: 0, b: 0, a: 0}

8
Assets/Shaders/UI/MainMenuPanel.mat.meta


fileFormatVersion: 2
guid: 2a709f75a928946eba080f86bb8bfe98
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

389
Assets/Shaders/UI/UIPanelFade.shader


Shader "UIPanelFade"
{
Properties
{
[NoScaleOffset]_MainTex("Texture2D", 2D) = "white" {}
Vector1_7563C2A4("Rotate", Range(-1, 1)) = 0
Vector1_68A27D51("Vertical Position", Range(-1, 1)) = 0
Vector1_5A14D1F("Horizontal Position", Range(-1, 1)) = 0
Vector1_C4B0954B("Width", Range(0.001, 0.5)) = 0.5
[Toggle]BOOLEAN_6EC3160E("Mirror", Float) = 0
}
SubShader
{
Tags
{
"RenderPipeline"="UniversalPipeline"
"RenderType"="Transparent"
"Queue"="Transparent+0"
}
Pass
{
Name "Pass"
// Render State
Blend SrcAlpha OneMinusSrcAlpha, One OneMinusSrcAlpha
ZTest LEqual
ZWrite Off
HLSLPROGRAM
#pragma vertex vert
#pragma fragment frag
// Debug
// <None>
// --------------------------------------------------
// Pass
// Pragmas
#pragma prefer_hlslcc gles
#pragma exclude_renderers d3d11_9x
#pragma target 2.0
#pragma multi_compile_instancing
// Keywords
#pragma multi_compile_local _ BOOLEAN_6EC3160E_ON
#if defined(BOOLEAN_6EC3160E_ON)
#define KEYWORD_PERMUTATION_0
#else
#define KEYWORD_PERMUTATION_1
#endif
// Includes
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
#include "Packages/com.unity.shadergraph/ShaderGraphLibrary/Functions.hlsl"
// --------------------------------------------------
// Graph
// Graph Properties
CBUFFER_START(UnityPerMaterial)
float Vector1_7563C2A4;
float Vector1_68A27D51;
float Vector1_5A14D1F;
float Vector1_C4B0954B;
CBUFFER_END
TEXTURE2D(_MainTex); SAMPLER(sampler_MainTex); float4 _MainTex_TexelSize;
// Graph Functions
void Unity_Multiply_float (float4 A, float4 B, out float4 Out)
{
Out = A * B;
}
void DoubleOffset_float(float Base, float Difference, float Spread, out float2 Output1, out float2 Output2)
{
float a = Base - Difference;
float b = Base + Difference;
Output1 = float2(a - Spread, a + Spread);
Output2 = float2(b - Spread, b + Spread);
}
void Unity_Combine_float(float R, float G, float B, float A, out float4 RGBA, out float3 RGB, out float2 RG)
{
RGBA = float4(R, G, B, A);
RGB = float3(R, G, B);
RG = float2(R, G);
}
void Unity_Add_float2(float2 A, float2 B, out float2 Out)
{
Out = A + B;
}
void Unity_Multiply_float (float A, float B, out float Out)
{
Out = A * B;
}
void Unity_Sine_float(float In, out float Out)
{
Out = sin(In);
}
void Unity_Cosine_float(float In, out float Out)
{
Out = cos(In);
}
void Unity_DotProduct_float2(float2 A, float2 B, out float Out)
{
Out = dot(A, B);
}
void Unity_Negate_float(float In, out float Out)
{
Out = -1 * In;
}
void Unity_Remap_float(float In, float2 InMinMax, float2 OutMinMax, out float Out)
{
Out = OutMinMax.x + (In - InMinMax.x) * (OutMinMax.y - OutMinMax.x) / (InMinMax.y - InMinMax.x);
}
void Unity_Subtract_float(float A, float B, out float Out)
{
Out = A - B;
}
void Unity_Absolute_float(float In, out float Out)
{
Out = abs(In);
}
void Unity_OneMinus_float(float In, out float Out)
{
Out = 1 - In;
}
void Unity_Fraction_float(float In, out float Out)
{
Out = frac(In);
}
void Unity_TilingAndOffset_float(float2 UV, float2 Tiling, float2 Offset, out float2 Out)
{
Out = UV * Tiling + Offset;
}
void Unity_Fraction_float2(float2 In, out float2 Out)
{
Out = frac(In);
}
void Unity_Distance_float2(float2 A, float2 B, out float Out)
{
Out = distance(A, B);
}
void Unity_Smoothstep_float(float Edge1, float Edge2, float In, out float Out)
{
Out = smoothstep(Edge1, Edge2, In);
}
void Unity_Lerp_float(float A, float B, float T, out float Out)
{
Out = lerp(A, B, T);
}
// Graph Vertex
// GraphVertex: <None>
// Graph Pixel
struct SurfaceDescriptionInputs
{
#if defined(KEYWORD_PERMUTATION_0) || defined(KEYWORD_PERMUTATION_1)
float3 WorldSpacePosition;
#endif
#if defined(KEYWORD_PERMUTATION_0) || defined(KEYWORD_PERMUTATION_1)
float4 ScreenPosition;
#endif
#if defined(KEYWORD_PERMUTATION_0) || defined(KEYWORD_PERMUTATION_1)
float4 uv0;
#endif
#if defined(KEYWORD_PERMUTATION_0) || defined(KEYWORD_PERMUTATION_1)
float4 VertexColor;
#endif
#if defined(KEYWORD_PERMUTATION_0) || defined(KEYWORD_PERMUTATION_1)
float3 TimeParameters;
#endif
};
struct SurfaceDescription
{
float3 Color;
float Alpha;
float AlphaClipThreshold;
};
SurfaceDescription SurfaceDescriptionFunction(SurfaceDescriptionInputs IN)
{
SurfaceDescription surface = (SurfaceDescription)0;
float4 _SampleTexture2D_3F8012CB_RGBA_0 = SAMPLE_TEXTURE2D(_MainTex, sampler_MainTex, IN.uv0.xy);
float4 _Multiply_DC665A75_Out_2 = _SampleTexture2D_3F8012CB_RGBA_0 * IN.VertexColor;
float2 _CustomFunction_7C9152A9_Output1_3;
float2 _CustomFunction_7C9152A9_Output2_4;
DoubleOffset_float(0.5, 0.1, 0.025, _CustomFunction_7C9152A9_Output1_3, _CustomFunction_7C9152A9_Output2_4);
float _Split_EEFEE03_R_1 = _CustomFunction_7C9152A9_Output1_3[0];
float _Split_EEFEE03_G_2 = _CustomFunction_7C9152A9_Output1_3[1];
float4 _ScreenPosition_12892564_Out_0 = float4(IN.ScreenPosition.xy / IN.ScreenPosition.w * 2 - 1, 0, 0);
float _Property_5C60C246_Out_0 = Vector1_5A14D1F;
float _Property_3F977C49_Out_0 = Vector1_68A27D51;
float2 _Combine_E68203FD_RG_6 = float2(_Property_5C60C246_Out_0, _Property_3F977C49_Out_0);
float2 _Add_FEFB160D_Out_2 = _ScreenPosition_12892564_Out_0.xy + _Combine_E68203FD_RG_6;
float _Property_6A5FA02B_Out_0 = Vector1_7563C2A4;
float Constant_84BE6CB2 = 3.141593;
float _Multiply_166E8FF_Out_2 = _Property_6A5FA02B_Out_0 * 3.141593;
float _Sine_56DCCE92_Out_1 = sin(_Multiply_166E8FF_Out_2);
float _Cosine_6C98699_Out_1 = cos(_Multiply_166E8FF_Out_2);
float2 _Combine_68A71F78_RG_6 = float2(_Sine_56DCCE92_Out_1, _Cosine_6C98699_Out_1);
float _DotProduct_4DFAA7CA_Out_2 = dot(_Add_FEFB160D_Out_2, _Combine_68A71F78_RG_6);
float _Property_24F8BD8_Out_0 = Vector1_C4B0954B;
float _Negate_4B7B6518_Out_1 = -_Property_24F8BD8_Out_0;
float2 _Combine_AF3296E0_RG_6 = float2(_Negate_4B7B6518_Out_1, _Property_24F8BD8_Out_0);
float _Remap_BF9AE274_Out_3;
Unity_Remap_float(_DotProduct_4DFAA7CA_Out_2, _Combine_AF3296E0_RG_6, float2 (0, 1), _Remap_BF9AE274_Out_3);
float _Subtract_44AA391B_Out_2 = _Remap_BF9AE274_Out_3 - _Property_24F8BD8_Out_0;
float _Absolute_9E656538_Out_1 = abs(_Subtract_44AA391B_Out_2);
float _OneMinus_24EECD6E_Out_1 = 1 - _Absolute_9E656538_Out_1;
#if defined(BOOLEAN_6EC3160E_ON)
float _Mirror_9ABF97A9_Out_0 = _OneMinus_24EECD6E_Out_1;
#else
float _Mirror_9ABF97A9_Out_0 = _Remap_BF9AE274_Out_3;
#endif
float4 _ScreenPosition_91DE393A_Out_0 = frac(float4((IN.ScreenPosition.x / IN.ScreenPosition.w * 2 - 1) * _ScreenParams.x / _ScreenParams.y, IN.ScreenPosition.y / IN.ScreenPosition.w * 2 - 1, 0, 0));
float _Vector1_90CE3AFA_Out_0 = 10;
float _Fraction_961F0992_Out_1 = frac(IN.TimeParameters.x);
float _OneMinus_47E6415F_Out_1 = 1 - _Fraction_961F0992_Out_1;
float2 _Combine_34F01114_RG_6 = float2(_OneMinus_47E6415F_Out_1, 0);
float2 _TilingAndOffset_820AA504_Out_3;
Unity_TilingAndOffset_float((_ScreenPosition_91DE393A_Out_0.xy), (_Vector1_90CE3AFA_Out_0.xx), _Combine_34F01114_RG_6, _TilingAndOffset_820AA504_Out_3);
float2 _Fraction_85BF219B_Out_1 = frac(_TilingAndOffset_820AA504_Out_3);
float _Vector1_A80C0185_Out_0 = 0.5;
float _Distance_7440F14A_Out_2 = distance(_Fraction_85BF219B_Out_1, _Vector1_A80C0185_Out_0.xx);
float _Remap_52B43685_Out_3;
Unity_Remap_float(_Distance_7440F14A_Out_2, float2 (0.5, 1), float2 (1, 0), _Remap_52B43685_Out_3);
float _Multiply_7481105A_Out_2 = _Mirror_9ABF97A9_Out_0 * _Remap_52B43685_Out_3;
float _Smoothstep_FC6FA553_Out_3 = smoothstep(_Split_EEFEE03_R_1, _Split_EEFEE03_G_2, _Multiply_7481105A_Out_2);
float _Smoothstep_1D4A479B_Out_3 = smoothstep(_CustomFunction_7C9152A9_Output2_4.x, _CustomFunction_7C9152A9_Output2_4.y, _Multiply_7481105A_Out_2);
float _Lerp_C33B85D8_Out_3 = lerp(_Smoothstep_FC6FA553_Out_3, _Smoothstep_1D4A479B_Out_3, 0.5);
surface.Color = _Multiply_DC665A75_Out_2.xyz;
surface.Alpha = _Multiply_DC665A75_Out_2.a * _Lerp_C33B85D8_Out_3;
surface.AlphaClipThreshold = 0;
return surface;
}
// --------------------------------------------------
// Structs and Packing
// Generated Type: Attributes
struct Attributes
{
float3 positionOS : POSITION;
float3 normalOS : NORMAL;
float4 tangentOS : TANGENT;
float4 uv0 : TEXCOORD0;
float4 color : COLOR;
};
// Generated Type: Varyings
struct Varyings
{
float4 positionCS : SV_Position;
float3 positionWS;
float4 texCoord0;
float4 color;
};
// Generated Type: PackedVaryings
struct PackedVaryings
{
float4 positionCS : SV_Position;
float3 interp00 : TEXCOORD0;
float4 interp01 : TEXCOORD1;
float4 interp02 : TEXCOORD2;
};
// Packed Type: Varyings
PackedVaryings PackVaryings(Varyings input)
{
PackedVaryings output;
output.positionCS = input.positionCS;
output.interp00.xyz = input.positionWS;
output.interp01.xyzw = input.texCoord0;
output.interp02.xyzw = input.color;
#if UNITY_ANY_INSTANCING_ENABLED
output.instanceID = input.instanceID;
#endif
#if defined(SHADER_STAGE_FRAGMENT) && defined(VARYINGS_NEED_CULLFACE)
output.cullFace = input.cullFace;
#endif
return output;
}
// Unpacked Type: Varyings
Varyings UnpackVaryings(PackedVaryings input)
{
Varyings output;
output.positionCS = input.positionCS;
output.positionWS = input.interp00.xyz;
output.texCoord0 = input.interp01.xyzw;
output.color = input.interp02.xyzw;
#if UNITY_ANY_INSTANCING_ENABLED
output.instanceID = input.instanceID;
#endif
#if defined(SHADER_STAGE_FRAGMENT) && defined(VARYINGS_NEED_CULLFACE)
output.cullFace = input.cullFace;
#endif
return output;
}
// --------------------------------------------------
// Build Graph Inputs
SurfaceDescriptionInputs BuildSurfaceDescriptionInputs(Varyings input)
{
SurfaceDescriptionInputs output;
ZERO_INITIALIZE(SurfaceDescriptionInputs, output);
output.WorldSpacePosition = input.positionWS;
output.ScreenPosition = ComputeScreenPos(TransformWorldToHClip(input.positionWS), _ProjectionParams.x);
output.uv0 = input.texCoord0;
output.VertexColor = input.color;
output.TimeParameters = _TimeParameters.xyz; // This is mainly for LW as HD overwrite this value
return output;
}
// --------------------------------------------------
// Main
#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/UnlitPass.hlsl"
ENDHLSL
}
}
FallBack "Hidden/InternalErrorShader"
}

9
Assets/Shaders/UI/UIPanelFade.shader.meta


fileFormatVersion: 2
guid: 017e3585791a14398a1019d64e6c22d5
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

670
Assets/Shaders/UI/UIPanelFade.shadergraph
文件差异内容过多而无法显示
查看文件

10
Assets/Shaders/UI/UIPanelFade.shadergraph.meta


fileFormatVersion: 2
guid: 0c744e3aa12054aac8371809a2a7db79
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3}
正在加载...
取消
保存