浏览代码

Added Some more options in the Sample Loader Menu

/main
Thomas ICHÉ 5 年前
当前提交
810b7c5c
共有 2 个文件被更改,包括 252 次插入5 次删除
  1. 5
      Assets/SampleLoader/SampleLoader.cs
  2. 252
      Assets/VisualEffectSamples.unity

5
Assets/SampleLoader/SampleLoader.cs


if(m_DemoMode)
UpdateDemoMode();
if (!m_Loading && (Input.GetButton(ChangeButtonName) || Input.touchCount != 0))
if ((Input.GetButton(ChangeButtonName) || Input.touchCount != 0))
{
NextScene();
}

public void NextScene()
{
if (m_Loading || m_Fading)
return;
int previous = currentScene;
currentScene = (currentScene + 1) % (SceneManager.sceneCountInBuildSettings - 1);

252
Assets/VisualEffectSamples.unity


type: 3}
m_PrefabInstance: {fileID: 928735226}
m_PrefabAsset: {fileID: 0}
--- !u!1 &996468510
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 996468511}
- component: {fileID: 996468513}
- component: {fileID: 996468512}
m_Layer: 5
m_Name: TakeScreenshot
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &996468511
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 996468510}
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: 2021809021}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 16.599903, y: 287}
m_SizeDelta: {x: -136.20001, y: -1049}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &996468512
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 996468510}
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: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 5d586a3aeda737f40b3904197903b045, type: 3}
m_FontSize: 24
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 128
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Take Screenshot (F10)
--- !u!222 &996468513
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 996468510}
m_CullTransparentMesh: 0
--- !u!1 &1061831870
GameObject:
m_ObjectHideFlags: 0

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1061831870}
m_CullTransparentMesh: 0
--- !u!1001 &1080105746
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2021809021}
m_Modifications:
- target: {fileID: 7953774776606052989, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_Text
value: Next Scene (Return)
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 792070312}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: NextScene
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601664, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_BoolArgument
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601666, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_Name
value: Button Next Scene
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_RootOrder
value: 6
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchoredPosition.x
value: -4.6000977
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 192
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_SizeDelta.x
value: -72.7
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_SizeDelta.y
value: 61.4
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 3f146363112f3fa4bb4dd8aa542bae38, type: 3}
--- !u!224 &1080105747 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
m_PrefabInstance: {fileID: 1080105746}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1090678041
GameObject:
m_ObjectHideFlags: 0

- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_RootOrder
value: 6
value: 8
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}

- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 184
value: 37.400024
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}

- {fileID: 134737607}
- {fileID: 1432135428}
- {fileID: 1238599955}
- {fileID: 996468511}
- {fileID: 1080105747}
- {fileID: 430133329}
- {fileID: 1384128335}
m_Father: {fileID: 223951092}

- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_RootOrder
value: 5
value: 7
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}

- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 261.3
value: 114.70001
objectReference: {fileID: 0}
- target: {fileID: 7953774777616601667, guid: 3f146363112f3fa4bb4dd8aa542bae38,
type: 3}

正在加载...
取消
保存