浏览代码

Added Clickable Watermark for Bonfire Scene

/main
Thomas ICHÉ 5 年前
当前提交
2be8efca
共有 5 个文件被更改,包括 464 次插入441 次删除
  1. 750
      Assets/Samples/BonFire/BonFire.unity
  2. 26
      Assets/Samples/Common/Scripts/OnClickURL.cs
  3. 11
      Assets/Samples/Common/Scripts/OnClickURL.cs.meta
  4. 3
      Assets/Samples/Common/Scripts/cursor-hand.png
  5. 115
      Assets/Samples/Common/Scripts/cursor-hand.png.meta

750
Assets/Samples/BonFire/BonFire.unity


type: 3}
m_PrefabInstance: {fileID: 34824704}
m_PrefabAsset: {fileID: 0}
--- !u!1 &46807313
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 46807317}
- component: {fileID: 46807316}
- component: {fileID: 46807315}
- component: {fileID: 46807314}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &46807314
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 46807313}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &46807315
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 46807313}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 1920, y: 1080}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &46807316
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 46807313}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &46807317
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 46807313}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 922521422}
m_Father: {fileID: 0}
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1001 &56977579
PrefabInstance:
m_ObjectHideFlags: 0

- target: {fileID: -4216859302048453862, guid: 09865819a53f1ff4e9ee1491bcf7a7b3,
type: 3}
propertyPath: m_RootOrder
value: 1
value: 7
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 09865819a53f1ff4e9ee1491bcf7a7b3,
type: 3}

m_Children:
- {fileID: 620623960}
m_Father: {fileID: 0}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: -3.634, y: 150.194, z: 0.63500005}
--- !u!1001 &166525756
PrefabInstance:

type: 3}
m_PrefabInstance: {fileID: 242826794}
m_PrefabAsset: {fileID: 0}
--- !u!1 &246803970
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 246803973}
- component: {fileID: 246803972}
- component: {fileID: 246803971}
m_Layer: 0
m_Name: EventSystem
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &246803971
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 246803970}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
m_VerticalAxis: Vertical
m_SubmitButton: Submit
m_CancelButton: Cancel
m_InputActionsPerSecond: 10
m_RepeatDelay: 0.5
m_ForceModuleActive: 0
--- !u!114 &246803972
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 246803970}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
m_sendNavigationEvents: 1
m_DragThreshold: 10
--- !u!4 &246803973
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 246803970}
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: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &250626441
PrefabInstance:
m_ObjectHideFlags: 0

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 1.6980001, y: 154.76701, z: -0.17400001}
--- !u!114 &323014743
MonoBehaviour:

type: 3}
m_PrefabInstance: {fileID: 376329886}
m_PrefabAsset: {fileID: 0}
--- !u!1 &377025547
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 377025548}
- component: {fileID: 377025550}
- component: {fileID: 377025549}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &377025548
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 377025547}
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: 922521422}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0, y: 15.4}
m_SizeDelta: {x: 160, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &377025549
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 377025547}
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: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: CC0 Assets by
--- !u!222 &377025550
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 377025547}
m_CullTransparentMesh: 0
--- !u!1001 &382627427
PrefabInstance:
m_ObjectHideFlags: 0

- component: {fileID: 564276481}
- component: {fileID: 564276483}
- component: {fileID: 564276482}
- component: {fileID: 564276484}
m_Layer: 5
m_Name: Image
m_TagString: Untagged

m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 564276480}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_Father: {fileID: 1863251695}
m_Father: {fileID: 1924019037}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -78.799805, y: 42}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: -0.15991211, y: 33.83499}
m_SizeDelta: {x: 119, y: 52}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &564276482

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 564276480}
m_CullTransparentMesh: 0
--- !u!114 &564276484
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 564276480}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c6b1f51c49eb4474c81f4f355dfed747, type: 3}
m_Name:
m_EditorClassIdentifier:
URL: https://kenney.nl/assets
linkCursor: {fileID: 2800000, guid: f6a9011522123e5428536aa81085a1e9, type: 3}
hotSpotPosition: {x: 7, y: 1}
--- !u!1001 &565507751
PrefabInstance:
m_ObjectHideFlags: 0

type: 3}
m_PrefabInstance: {fileID: 908725699}
m_PrefabAsset: {fileID: 0}
--- !u!1 &922521421
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 922521422}
- component: {fileID: 922521424}
- component: {fileID: 922521423}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &922521422
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 922521421}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 377025548}
m_Father: {fileID: 46807317}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -78.799805, y: 42}
m_SizeDelta: {x: 119, y: 52}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &922521423
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 922521421}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 5d43ef44682b26c489a9a9617e756617, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &922521424
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 922521421}
m_CullTransparentMesh: 0
--- !u!1001 &931979272
PrefabInstance:
m_ObjectHideFlags: 0

type: 3}
m_PrefabInstance: {fileID: 1008352888}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1010813546
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d877ec3e844f2ca46830012e8e79319b, type: 3}
m_Name:
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
rotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
skyIntensityMode:
m_OverrideState: 0
m_Value: 0
exposure:
m_OverrideState: 0
m_Value: 0
multiplier:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxValue:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxColor:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
desiredLuxValue:
m_OverrideState: 0
m_Value: 20000
updateMode:
m_OverrideState: 0
m_Value: 0
updatePeriod:
m_OverrideState: 0
m_Value: 0
min: 0
includeSunInBaking:
m_OverrideState: 0
m_Value: 0
earthPreset:
m_OverrideState: 0
m_Value: 1
sphericalMode:
m_OverrideState: 0
m_Value: 1
seaLevel:
m_OverrideState: 0
m_Value: 0
planetaryRadius:
m_OverrideState: 0
m_Value: 6378100
min: 0
planetCenterPosition:
m_OverrideState: 0
m_Value: {x: 0, y: -6378100, z: 0}
airDensityR:
m_OverrideState: 0
m_Value: 0.04534
min: 0
max: 1
airDensityG:
m_OverrideState: 0
m_Value: 0.10237241
min: 0
max: 1
airDensityB:
m_OverrideState: 0
m_Value: 0.23264056
min: 0
max: 1
airTint:
m_OverrideState: 0
m_Value: {r: 0.9, g: 0.9, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1
airMaximumAltitude:
m_OverrideState: 0
m_Value: 55261.973
min: 0
aerosolDensity:
m_OverrideState: 0
m_Value: 0.01192826
min: 0
max: 1
aerosolTint:
m_OverrideState: 0
m_Value: {r: 0.9, g: 0.9, b: 0.9, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1
aerosolMaximumAltitude:
m_OverrideState: 0
m_Value: 8289.296
min: 0
aerosolAnisotropy:
m_OverrideState: 0
m_Value: 0
min: -1
max: 1
numberOfBounces:
m_OverrideState: 0
m_Value: 8
min: 1
max: 10
groundTint:
m_OverrideState: 0
m_Value: {r: 0.4, g: 0.25, b: 0.15, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 0
groundColorTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
groundEmissionTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
groundEmissionMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
planetRotation:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
spaceEmissionTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
spaceEmissionMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
spaceRotation:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
colorSaturation:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
alphaSaturation:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
alphaMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
horizonTint:
m_OverrideState: 0
m_Value: {r: 1, g: 1, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 0
zenithTint:
m_OverrideState: 0
m_Value: {r: 1, g: 1, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 0
horizonZenithShift:
m_OverrideState: 0
m_Value: 0
min: -1
max: 1
--- !u!1001 &1030365816
PrefabInstance:
m_ObjectHideFlags: 0

m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontSize: 15
m_MinSize: 10
m_MaxSize: 40
m_MinSize: 1
m_MaxSize: 128
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1

- target: {fileID: -4216859302048453862, guid: 09865819a53f1ff4e9ee1491bcf7a7b3,
type: 3}
propertyPath: m_RootOrder
value: 8
value: 9
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: 09865819a53f1ff4e9ee1491bcf7a7b3,
type: 3}

m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 564276481}
- {fileID: 1924019037}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

m_EditorClassIdentifier:
m_Profile: {fileID: 11400000, guid: bf4b3e14be82b2849b355a144c08c6ad, type: 2}
m_StaticLightingSkyUniqueID: 4
m_SkySettings: {fileID: 1010813546}
m_SkySettings: {fileID: 2125892329}
m_SkySettingsFromProfile: {fileID: 6591338657184051234, guid: bf4b3e14be82b2849b355a144c08c6ad,
type: 2}
--- !u!4 &1915525478

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_RootOrder: 8
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1923005447
PrefabInstance:

type: 3}
m_PrefabInstance: {fileID: 1923005447}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1924019036
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1924019037}
m_Layer: 5
m_Name: Kenney-Link
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1924019037
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1924019036}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 564276481}
m_Father: {fileID: 1863251695}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -78.819824, y: 50.08008}
m_SizeDelta: {x: 136.36, y: 83.83}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &1944765790
PrefabInstance:
m_ObjectHideFlags: 0

type: 3}
m_PrefabInstance: {fileID: 2116472878}
m_PrefabAsset: {fileID: 0}
--- !u!114 &2125892329
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d877ec3e844f2ca46830012e8e79319b, type: 3}
m_Name:
m_EditorClassIdentifier:
active: 1
m_AdvancedMode: 0
rotation:
m_OverrideState: 0
m_Value: 0
min: 0
max: 360
skyIntensityMode:
m_OverrideState: 0
m_Value: 0
exposure:
m_OverrideState: 0
m_Value: 0
multiplier:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxValue:
m_OverrideState: 0
m_Value: 1
min: 0
upperHemisphereLuxColor:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
desiredLuxValue:
m_OverrideState: 0
m_Value: 20000
updateMode:
m_OverrideState: 0
m_Value: 0
updatePeriod:
m_OverrideState: 0
m_Value: 0
min: 0
includeSunInBaking:
m_OverrideState: 0
m_Value: 0
earthPreset:
m_OverrideState: 0
m_Value: 1
sphericalMode:
m_OverrideState: 0
m_Value: 1
seaLevel:
m_OverrideState: 0
m_Value: 0
planetaryRadius:
m_OverrideState: 0
m_Value: 6378100
min: 0
planetCenterPosition:
m_OverrideState: 0
m_Value: {x: 0, y: -6378100, z: 0}
airDensityR:
m_OverrideState: 0
m_Value: 0.04534
min: 0
max: 1
airDensityG:
m_OverrideState: 0
m_Value: 0.10237241
min: 0
max: 1
airDensityB:
m_OverrideState: 0
m_Value: 0.23264056
min: 0
max: 1
airTint:
m_OverrideState: 0
m_Value: {r: 0.9, g: 0.9, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1
airMaximumAltitude:
m_OverrideState: 0
m_Value: 55261.973
min: 0
aerosolDensity:
m_OverrideState: 0
m_Value: 0.01192826
min: 0
max: 1
aerosolTint:
m_OverrideState: 0
m_Value: {r: 0.9, g: 0.9, b: 0.9, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 1
aerosolMaximumAltitude:
m_OverrideState: 0
m_Value: 8289.296
min: 0
aerosolAnisotropy:
m_OverrideState: 0
m_Value: 0
min: -1
max: 1
numberOfBounces:
m_OverrideState: 0
m_Value: 8
min: 1
max: 10
groundTint:
m_OverrideState: 0
m_Value: {r: 0.4, g: 0.25, b: 0.15, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 0
groundColorTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
groundEmissionTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
groundEmissionMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
planetRotation:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
spaceEmissionTexture:
m_OverrideState: 0
m_Value: {fileID: 0}
spaceEmissionMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
spaceRotation:
m_OverrideState: 0
m_Value: {x: 0, y: 0, z: 0}
colorSaturation:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
alphaSaturation:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
alphaMultiplier:
m_OverrideState: 0
m_Value: 1
min: 0
max: 1
horizonTint:
m_OverrideState: 0
m_Value: {r: 1, g: 1, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 0
zenithTint:
m_OverrideState: 0
m_Value: {r: 1, g: 1, b: 1, a: 1}
hdr: 0
showAlpha: 0
showEyeDropper: 0
horizonZenithShift:
m_OverrideState: 0
m_Value: 0
min: -1
max: 1
--- !u!1001 &2140076661
PrefabInstance:
m_ObjectHideFlags: 0

26
Assets/Samples/Common/Scripts/OnClickURL.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public class OnClickURL : MonoBehaviour, IPointerEnterHandler, IPointerDownHandler, IPointerExitHandler
{
public string URL = "https://unity.com";
public Texture2D linkCursor;
public Vector2 hotSpotPosition = Vector2.zero;
public void OnPointerDown(PointerEventData eventData)
{
Application.OpenURL(URL);
}
public void OnPointerEnter(PointerEventData eventData)
{
Cursor.SetCursor(linkCursor, hotSpotPosition, CursorMode.Auto);
}
public void OnPointerExit(PointerEventData eventData)
{
Cursor.SetCursor(null, Vector2.zero, CursorMode.ForceSoftware);
}
}

11
Assets/Samples/Common/Scripts/OnClickURL.cs.meta


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

3
Assets/Samples/Common/Scripts/cursor-hand.png

之前 之后
宽度: 24  |  高度: 24  |  大小: 1.7 KiB

115
Assets/Samples/Common/Scripts/cursor-hand.png.meta


fileFormatVersion: 2
guid: f6a9011522123e5428536aa81085a1e9
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 1
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: PS4
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存