Version 17.5
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8ad10a5377ae04748b1455a7184c6971
|
||||
folderAsset: yes
|
||||
timeCreated: 1479762244
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,348 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!74 &7400000
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: BallAnimation
|
||||
serializedVersion: 6
|
||||
m_Legacy: 0
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_PositionCurves:
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: {x: 0, y: .0500000007, z: 0}
|
||||
inSlope: {x: -2.39999986, y: .949999988, z: -2.39999986}
|
||||
outSlope: {x: -2.39999986, y: .949999988, z: -2.39999986}
|
||||
tangentMode: 0
|
||||
- time: .0833333358
|
||||
value: {x: -.200000003, y: .129166663, z: -.200000003}
|
||||
inSlope: {x: -1.19999993, y: .949999988, z: 1.19999993}
|
||||
outSlope: {x: -1.19999993, y: .949999988, z: 1.19999993}
|
||||
tangentMode: 0
|
||||
- time: .166666672
|
||||
value: {x: -.200000003, y: .208333328, z: .200000003}
|
||||
inSlope: {x: 2.4000001, y: .950000048, z: 2.39999986}
|
||||
outSlope: {x: 2.4000001, y: .950000048, z: 2.39999986}
|
||||
tangentMode: 0
|
||||
- time: .25
|
||||
value: {x: .200000003, y: .287499994, z: .200000003}
|
||||
inSlope: {x: 2.4000001, y: .950000048, z: -2.39999986}
|
||||
outSlope: {x: 2.4000001, y: .950000048, z: -2.39999986}
|
||||
tangentMode: 0
|
||||
- time: .333333343
|
||||
value: {x: .200000003, y: .366666675, z: -.200000003}
|
||||
inSlope: {x: -2.40000057, y: .950000048, z: -2.39999986}
|
||||
outSlope: {x: -2.40000057, y: .950000048, z: -2.39999986}
|
||||
tangentMode: 0
|
||||
- time: .416666657
|
||||
value: {x: -.200000003, y: .445833325, z: -.200000003}
|
||||
inSlope: {x: -2.40000057, y: .949999869, z: 2.39999986}
|
||||
outSlope: {x: -2.40000057, y: .949999869, z: 2.39999986}
|
||||
tangentMode: 0
|
||||
- time: .5
|
||||
value: {x: -.200000003, y: .524999976, z: .200000003}
|
||||
inSlope: {x: 2.40000057, y: .949999869, z: 2.39999986}
|
||||
outSlope: {x: 2.40000057, y: .949999869, z: 2.39999986}
|
||||
tangentMode: 0
|
||||
- time: .583333313
|
||||
value: {x: .200000003, y: .604166627, z: .200000003}
|
||||
inSlope: {x: 2.40000057, y: .950000048, z: -2.3999989}
|
||||
outSlope: {x: 2.40000057, y: .950000048, z: -2.3999989}
|
||||
tangentMode: 0
|
||||
- time: .666666687
|
||||
value: {x: .200000003, y: .683333337, z: -.200000003}
|
||||
inSlope: {x: -2.40000057, y: .950000048, z: -2.3999989}
|
||||
outSlope: {x: -2.40000057, y: .950000048, z: -2.3999989}
|
||||
tangentMode: 0
|
||||
- time: .75
|
||||
value: {x: -.200000003, y: .762499988, z: -.200000003}
|
||||
inSlope: {x: -2.40000057, y: .950000048, z: 2.40000057}
|
||||
outSlope: {x: -2.40000057, y: .950000048, z: 2.40000057}
|
||||
tangentMode: 0
|
||||
- time: .833333313
|
||||
value: {x: -.200000003, y: .841666639, z: .200000003}
|
||||
inSlope: {x: 2.3999989, y: .950000048, z: 2.40000057}
|
||||
outSlope: {x: 2.3999989, y: .950000048, z: 2.40000057}
|
||||
tangentMode: 0
|
||||
- time: .916666687
|
||||
value: {x: .200000003, y: .920833349, z: .200000003}
|
||||
inSlope: {x: 1.19999862, y: .950000048, z: -1.20000029}
|
||||
outSlope: {x: 1.19999862, y: .950000048, z: -1.20000029}
|
||||
tangentMode: 0
|
||||
- time: 1
|
||||
value: {x: 0, y: 1, z: 0}
|
||||
inSlope: {x: -2.40000057, y: .950000048, z: -2.40000057}
|
||||
outSlope: {x: -2.40000057, y: .950000048, z: -2.40000057}
|
||||
tangentMode: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
path: Sphere
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves: []
|
||||
m_PPtrCurves: []
|
||||
m_SampleRate: 60
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings:
|
||||
- path: 1381327793
|
||||
attribute: 1
|
||||
script: {fileID: 0}
|
||||
classID: 4
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
pptrCurveMapping: []
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_StartTime: 0
|
||||
m_StopTime: 1
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_LoopTime: 0
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves:
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 0
|
||||
inSlope: -2.39999986
|
||||
outSlope: -2.39999986
|
||||
tangentMode: 10
|
||||
- time: .0833333358
|
||||
value: -.200000003
|
||||
inSlope: -1.19999993
|
||||
outSlope: -1.19999993
|
||||
tangentMode: 10
|
||||
- time: .166666672
|
||||
value: -.200000003
|
||||
inSlope: 2.4000001
|
||||
outSlope: 2.4000001
|
||||
tangentMode: 10
|
||||
- time: .25
|
||||
value: .200000003
|
||||
inSlope: 2.4000001
|
||||
outSlope: 2.4000001
|
||||
tangentMode: 10
|
||||
- time: .333333343
|
||||
value: .200000003
|
||||
inSlope: -2.40000057
|
||||
outSlope: -2.40000057
|
||||
tangentMode: 10
|
||||
- time: .416666657
|
||||
value: -.200000003
|
||||
inSlope: -2.40000057
|
||||
outSlope: -2.40000057
|
||||
tangentMode: 10
|
||||
- time: .5
|
||||
value: -.200000003
|
||||
inSlope: 2.40000057
|
||||
outSlope: 2.40000057
|
||||
tangentMode: 10
|
||||
- time: .583333313
|
||||
value: .200000003
|
||||
inSlope: 2.40000057
|
||||
outSlope: 2.40000057
|
||||
tangentMode: 10
|
||||
- time: .666666687
|
||||
value: .200000003
|
||||
inSlope: -2.40000057
|
||||
outSlope: -2.40000057
|
||||
tangentMode: 10
|
||||
- time: .75
|
||||
value: -.200000003
|
||||
inSlope: -2.40000057
|
||||
outSlope: -2.40000057
|
||||
tangentMode: 10
|
||||
- time: .833333313
|
||||
value: -.200000003
|
||||
inSlope: 2.3999989
|
||||
outSlope: 2.3999989
|
||||
tangentMode: 10
|
||||
- time: .916666687
|
||||
value: .200000003
|
||||
inSlope: 1.19999862
|
||||
outSlope: 1.19999862
|
||||
tangentMode: 10
|
||||
- time: 1
|
||||
value: 0
|
||||
inSlope: -2.40000057
|
||||
outSlope: -2.40000057
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_LocalPosition.x
|
||||
path: Sphere
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: .0500000007
|
||||
inSlope: .949999988
|
||||
outSlope: .949999988
|
||||
tangentMode: 10
|
||||
- time: .0833333358
|
||||
value: .129166663
|
||||
inSlope: .949999988
|
||||
outSlope: .949999988
|
||||
tangentMode: 10
|
||||
- time: .166666672
|
||||
value: .208333328
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .25
|
||||
value: .287499994
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .333333343
|
||||
value: .366666675
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .416666657
|
||||
value: .445833325
|
||||
inSlope: .949999869
|
||||
outSlope: .949999869
|
||||
tangentMode: 10
|
||||
- time: .5
|
||||
value: .524999976
|
||||
inSlope: .949999869
|
||||
outSlope: .949999869
|
||||
tangentMode: 10
|
||||
- time: .583333313
|
||||
value: .604166627
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .666666687
|
||||
value: .683333337
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .75
|
||||
value: .762499988
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .833333313
|
||||
value: .841666639
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: .916666687
|
||||
value: .920833349
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
- time: 1
|
||||
value: 1
|
||||
inSlope: .950000048
|
||||
outSlope: .950000048
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_LocalPosition.y
|
||||
path: Sphere
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 0
|
||||
inSlope: -2.39999986
|
||||
outSlope: -2.39999986
|
||||
tangentMode: 10
|
||||
- time: .0833333358
|
||||
value: -.200000003
|
||||
inSlope: 1.19999993
|
||||
outSlope: 1.19999993
|
||||
tangentMode: 10
|
||||
- time: .166666672
|
||||
value: .200000003
|
||||
inSlope: 2.39999986
|
||||
outSlope: 2.39999986
|
||||
tangentMode: 10
|
||||
- time: .25
|
||||
value: .200000003
|
||||
inSlope: -2.39999986
|
||||
outSlope: -2.39999986
|
||||
tangentMode: 10
|
||||
- time: .333333343
|
||||
value: -.200000003
|
||||
inSlope: -2.39999986
|
||||
outSlope: -2.39999986
|
||||
tangentMode: 10
|
||||
- time: .416666657
|
||||
value: -.200000003
|
||||
inSlope: 2.39999986
|
||||
outSlope: 2.39999986
|
||||
tangentMode: 10
|
||||
- time: .5
|
||||
value: .200000003
|
||||
inSlope: 2.39999986
|
||||
outSlope: 2.39999986
|
||||
tangentMode: 10
|
||||
- time: .583333313
|
||||
value: .200000003
|
||||
inSlope: -2.3999989
|
||||
outSlope: -2.3999989
|
||||
tangentMode: 10
|
||||
- time: .666666687
|
||||
value: -.200000003
|
||||
inSlope: -2.3999989
|
||||
outSlope: -2.3999989
|
||||
tangentMode: 10
|
||||
- time: .75
|
||||
value: -.200000003
|
||||
inSlope: 2.40000057
|
||||
outSlope: 2.40000057
|
||||
tangentMode: 10
|
||||
- time: .833333313
|
||||
value: .200000003
|
||||
inSlope: 2.40000057
|
||||
outSlope: 2.40000057
|
||||
tangentMode: 10
|
||||
- time: .916666687
|
||||
value: .200000003
|
||||
inSlope: -1.20000029
|
||||
outSlope: -1.20000029
|
||||
tangentMode: 10
|
||||
- time: 1
|
||||
value: 0
|
||||
inSlope: -2.40000057
|
||||
outSlope: -2.40000057
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_LocalPosition.z
|
||||
path: Sphere
|
||||
classID: 4
|
||||
script: {fileID: 0}
|
||||
m_EulerEditorCurves: []
|
||||
m_HasGenericRootTransform: 0
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_GenerateMotionCurves: 0
|
||||
m_Events: []
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40c8cba0bc8712e4ead8747ee58dd141
|
||||
timeCreated: 1436402878
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1c0e3b33fba81e4f854a8bc367fc1d7
|
||||
folderAsset: yes
|
||||
timeCreated: 1479867650
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,70 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!91 &9100000
|
||||
AnimatorController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: BallAnimationController
|
||||
serializedVersion: 5
|
||||
m_AnimatorParameters: []
|
||||
m_AnimatorLayers:
|
||||
- serializedVersion: 5
|
||||
m_Name: Base Layer
|
||||
m_StateMachine: {fileID: 110746968}
|
||||
m_Mask: {fileID: 0}
|
||||
m_Motions: []
|
||||
m_Behaviours: []
|
||||
m_BlendingMode: 0
|
||||
m_SyncedLayerIndex: -1
|
||||
m_DefaultWeight: 0
|
||||
m_IKPass: 0
|
||||
m_SyncedLayerAffectsTiming: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
--- !u!1102 &110216938
|
||||
AnimatorState:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: BallAnimation
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions: []
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 50, y: 50, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_WriteDefaultValues: 1
|
||||
m_Mirror: 0
|
||||
m_SpeedParameterActive: 0
|
||||
m_MirrorParameterActive: 0
|
||||
m_CycleOffsetParameterActive: 0
|
||||
m_Motion: {fileID: 7400000, guid: 40c8cba0bc8712e4ead8747ee58dd141, type: 2}
|
||||
m_Tag:
|
||||
m_SpeedParameter:
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
--- !u!1107 &110746968
|
||||
AnimatorStateMachine:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Base Layer
|
||||
m_ChildStates:
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 110216938}
|
||||
m_Position: {x: 264, y: 108, z: 0}
|
||||
m_ChildStateMachines: []
|
||||
m_AnyStateTransitions: []
|
||||
m_EntryTransitions: []
|
||||
m_StateMachineTransitions:
|
||||
data:
|
||||
first: {fileID: 110746968}
|
||||
second: []
|
||||
m_StateMachineBehaviours: []
|
||||
m_AnyStatePosition: {x: 50, y: 20, z: 0}
|
||||
m_EntryPosition: {x: 50, y: 120, z: 0}
|
||||
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||
m_DefaultState: {fileID: 110216938}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a34de06929382804eb01e06cd6e8decf
|
||||
timeCreated: 1436402878
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 452b45a02bfe51243a19acb7251c865b
|
||||
folderAsset: yes
|
||||
timeCreated: 1479762244
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,127 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Grey
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 0.17647058, g: 0.17647058, b: 0.17647058, a: 1}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 07bcd4e0597eb0648b7a45624f2e0594
|
||||
timeCreated: 1436400675
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,127 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: LightGreen
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.2
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 0.31140977, g: 0.33823532, b: 0.2959559, a: 1}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80a6bae7122d17d4c9243b982a652788
|
||||
timeCreated: 1436484832
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,127 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: ShinyWhite
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.741
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 1, g: 1, b: 1, a: 1}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7e90f10e44a186a49a00679d068515ed
|
||||
timeCreated: 1436400737
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,136 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: ShinyWhiteHighlighted
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _SpecGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.71
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 0.3602941, g: 0.8411764, b: 1, a: 1}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
- first:
|
||||
name: _SpecColor
|
||||
second: {r: 0, g: 0.71034503, b: 1, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6729a932de5127b419aacfd9be7dde0d
|
||||
timeCreated: 1436400936
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,127 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!21 &2100000
|
||||
Material:
|
||||
serializedVersion: 6
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: ShinyYellow
|
||||
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ShaderKeywords: _EMISSION
|
||||
m_LightmapFlags: 1
|
||||
m_CustomRenderQueue: -1
|
||||
stringTagMap: {}
|
||||
m_SavedProperties:
|
||||
serializedVersion: 2
|
||||
m_TexEnvs:
|
||||
- first:
|
||||
name: _BumpMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailAlbedoMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailMask
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _DetailNormalMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _EmissionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MainTex
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _MetallicGlossMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _OcclusionMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- first:
|
||||
name: _ParallaxMap
|
||||
second:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_Floats:
|
||||
- first:
|
||||
name: _BumpScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Cutoff
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _DetailNormalMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _DstBlend
|
||||
second: 0
|
||||
- first:
|
||||
name: _GlossMapScale
|
||||
second: 1
|
||||
- first:
|
||||
name: _Glossiness
|
||||
second: 0.5
|
||||
- first:
|
||||
name: _GlossyReflections
|
||||
second: 1
|
||||
- first:
|
||||
name: _Metallic
|
||||
second: 0
|
||||
- first:
|
||||
name: _Mode
|
||||
second: 0
|
||||
- first:
|
||||
name: _OcclusionStrength
|
||||
second: 1
|
||||
- first:
|
||||
name: _Parallax
|
||||
second: 0.02
|
||||
- first:
|
||||
name: _SmoothnessTextureChannel
|
||||
second: 0
|
||||
- first:
|
||||
name: _SpecularHighlights
|
||||
second: 1
|
||||
- first:
|
||||
name: _SrcBlend
|
||||
second: 1
|
||||
- first:
|
||||
name: _UVSec
|
||||
second: 0
|
||||
- first:
|
||||
name: _ZWrite
|
||||
second: 1
|
||||
m_Colors:
|
||||
- first:
|
||||
name: _Color
|
||||
second: {r: 0.94482756, g: 1, b: 0, a: 1}
|
||||
- first:
|
||||
name: _EmissionColor
|
||||
second: {r: 0, g: 0, b: 0, a: 1}
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f5766a8b67794141ac19c1a51d27083
|
||||
timeCreated: 1436402817
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d1a38babac376b7418f11ad0254a0cf2
|
||||
folderAsset: yes
|
||||
timeCreated: 1479770193
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2c0100d76cbce114081a60bb63b0ea26ac8863c20436aa9227ffe356e2b6cfd3
|
||||
size 8088
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0b086fbb874df143b6ac8f53cea5424
|
||||
timeCreated: 1478570038
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f5e4208d96a15a7bb6cd99818514b2e1cea707ca029ff1af03d399bedea966d0
|
||||
size 8094
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fb710a001890d9a44bb74a8ce4f20cc0
|
||||
timeCreated: 1478570042
|
||||
licenseType: Store
|
||||
NativeFormatImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03889921b093f9047aa4cc9b216d6e03
|
||||
folderAsset: yes
|
||||
timeCreated: 1479762244
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e3b77830391f10343929883b18f4d5ae
|
||||
timeCreated: 1478562444
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,9 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39bd76f2a1f5f3d4fa65ddb1d3c4e978
|
||||
folderAsset: yes
|
||||
timeCreated: 1479855639
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,115 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
//
|
||||
// Purpose: Demonstrates the use of the controller hint system
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using Valve.VR;
|
||||
|
||||
namespace Valve.VR.InteractionSystem
|
||||
{
|
||||
//-------------------------------------------------------------------------
|
||||
public class ControllerHintsExample : MonoBehaviour
|
||||
{
|
||||
private Coroutine buttonHintCoroutine;
|
||||
private Coroutine textHintCoroutine;
|
||||
|
||||
//-------------------------------------------------
|
||||
public void ShowButtonHints( Hand hand )
|
||||
{
|
||||
if ( buttonHintCoroutine != null )
|
||||
{
|
||||
StopCoroutine( buttonHintCoroutine );
|
||||
}
|
||||
buttonHintCoroutine = StartCoroutine( TestButtonHints( hand ) );
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
public void ShowTextHints( Hand hand )
|
||||
{
|
||||
if ( textHintCoroutine != null )
|
||||
{
|
||||
StopCoroutine( textHintCoroutine );
|
||||
}
|
||||
textHintCoroutine = StartCoroutine( TestTextHints( hand ) );
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
public void DisableHints()
|
||||
{
|
||||
if ( buttonHintCoroutine != null )
|
||||
{
|
||||
StopCoroutine( buttonHintCoroutine );
|
||||
buttonHintCoroutine = null;
|
||||
}
|
||||
|
||||
if ( textHintCoroutine != null )
|
||||
{
|
||||
StopCoroutine( textHintCoroutine );
|
||||
textHintCoroutine = null;
|
||||
}
|
||||
|
||||
foreach ( Hand hand in Player.instance.hands )
|
||||
{
|
||||
ControllerButtonHints.HideAllButtonHints( hand );
|
||||
ControllerButtonHints.HideAllTextHints( hand );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Cycles through all the button hints on the controller
|
||||
//-------------------------------------------------
|
||||
private IEnumerator TestButtonHints( Hand hand )
|
||||
{
|
||||
ControllerButtonHints.HideAllButtonHints( hand );
|
||||
|
||||
while ( true )
|
||||
{
|
||||
ControllerButtonHints.ShowButtonHint( hand, EVRButtonId.k_EButton_ApplicationMenu );
|
||||
yield return new WaitForSeconds( 1.0f );
|
||||
ControllerButtonHints.ShowButtonHint( hand, EVRButtonId.k_EButton_System );
|
||||
yield return new WaitForSeconds( 1.0f );
|
||||
ControllerButtonHints.ShowButtonHint( hand, EVRButtonId.k_EButton_Grip );
|
||||
yield return new WaitForSeconds( 1.0f );
|
||||
ControllerButtonHints.ShowButtonHint( hand, EVRButtonId.k_EButton_SteamVR_Trigger );
|
||||
yield return new WaitForSeconds( 1.0f );
|
||||
ControllerButtonHints.ShowButtonHint( hand, EVRButtonId.k_EButton_SteamVR_Touchpad );
|
||||
yield return new WaitForSeconds( 1.0f );
|
||||
|
||||
ControllerButtonHints.HideAllButtonHints( hand );
|
||||
yield return new WaitForSeconds( 1.0f );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Cycles through all the text hints on the controller
|
||||
//-------------------------------------------------
|
||||
private IEnumerator TestTextHints( Hand hand )
|
||||
{
|
||||
ControllerButtonHints.HideAllTextHints( hand );
|
||||
|
||||
while ( true )
|
||||
{
|
||||
ControllerButtonHints.ShowTextHint( hand, EVRButtonId.k_EButton_ApplicationMenu, "Application" );
|
||||
yield return new WaitForSeconds( 3.0f );
|
||||
ControllerButtonHints.ShowTextHint( hand, EVRButtonId.k_EButton_System, "System" );
|
||||
yield return new WaitForSeconds( 3.0f );
|
||||
ControllerButtonHints.ShowTextHint( hand, EVRButtonId.k_EButton_Grip, "Grip" );
|
||||
yield return new WaitForSeconds( 3.0f );
|
||||
ControllerButtonHints.ShowTextHint( hand, EVRButtonId.k_EButton_SteamVR_Trigger, "Trigger" );
|
||||
yield return new WaitForSeconds( 3.0f );
|
||||
ControllerButtonHints.ShowTextHint( hand, EVRButtonId.k_EButton_SteamVR_Touchpad, "Touchpad" );
|
||||
yield return new WaitForSeconds( 3.0f );
|
||||
|
||||
ControllerButtonHints.HideAllTextHints( hand );
|
||||
yield return new WaitForSeconds( 3.0f );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 79e7ef0af37bbcb40ab89c4cc2481018
|
||||
timeCreated: 1478646892
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: b93fe5c516cf6ed4b9153ec790f856e2, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,129 @@
|
||||
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
|
||||
//
|
||||
// Purpose: Demonstrates how to create a simple interactable object
|
||||
//
|
||||
//=============================================================================
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
namespace Valve.VR.InteractionSystem
|
||||
{
|
||||
//-------------------------------------------------------------------------
|
||||
[RequireComponent( typeof( Interactable ) )]
|
||||
public class InteractableExample : MonoBehaviour
|
||||
{
|
||||
private TextMesh textMesh;
|
||||
private Vector3 oldPosition;
|
||||
private Quaternion oldRotation;
|
||||
|
||||
private float attachTime;
|
||||
|
||||
private Hand.AttachmentFlags attachmentFlags = Hand.defaultAttachmentFlags & ( ~Hand.AttachmentFlags.SnapOnAttach ) & ( ~Hand.AttachmentFlags.DetachOthers );
|
||||
|
||||
//-------------------------------------------------
|
||||
void Awake()
|
||||
{
|
||||
textMesh = GetComponentInChildren<TextMesh>();
|
||||
textMesh.text = "No Hand Hovering";
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called when a Hand starts hovering over this object
|
||||
//-------------------------------------------------
|
||||
private void OnHandHoverBegin( Hand hand )
|
||||
{
|
||||
textMesh.text = "Hovering hand: " + hand.name;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called when a Hand stops hovering over this object
|
||||
//-------------------------------------------------
|
||||
private void OnHandHoverEnd( Hand hand )
|
||||
{
|
||||
textMesh.text = "No Hand Hovering";
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called every Update() while a Hand is hovering over this object
|
||||
//-------------------------------------------------
|
||||
private void HandHoverUpdate( Hand hand )
|
||||
{
|
||||
if ( hand.GetStandardInteractionButtonDown() || ( ( hand.controller != null ) && hand.controller.GetPressDown( Valve.VR.EVRButtonId.k_EButton_Grip ) ) )
|
||||
{
|
||||
if ( hand.currentAttachedObject != gameObject )
|
||||
{
|
||||
// Save our position/rotation so that we can restore it when we detach
|
||||
oldPosition = transform.position;
|
||||
oldRotation = transform.rotation;
|
||||
|
||||
// Call this to continue receiving HandHoverUpdate messages,
|
||||
// and prevent the hand from hovering over anything else
|
||||
hand.HoverLock( GetComponent<Interactable>() );
|
||||
|
||||
// Attach this object to the hand
|
||||
hand.AttachObject( gameObject, attachmentFlags );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Detach this object from the hand
|
||||
hand.DetachObject( gameObject );
|
||||
|
||||
// Call this to undo HoverLock
|
||||
hand.HoverUnlock( GetComponent<Interactable>() );
|
||||
|
||||
// Restore position/rotation
|
||||
transform.position = oldPosition;
|
||||
transform.rotation = oldRotation;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called when this GameObject becomes attached to the hand
|
||||
//-------------------------------------------------
|
||||
private void OnAttachedToHand( Hand hand )
|
||||
{
|
||||
textMesh.text = "Attached to hand: " + hand.name;
|
||||
attachTime = Time.time;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called when this GameObject is detached from the hand
|
||||
//-------------------------------------------------
|
||||
private void OnDetachedFromHand( Hand hand )
|
||||
{
|
||||
textMesh.text = "Detached from hand: " + hand.name;
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called every Update() while this GameObject is attached to the hand
|
||||
//-------------------------------------------------
|
||||
private void HandAttachedUpdate( Hand hand )
|
||||
{
|
||||
textMesh.text = "Attached to hand: " + hand.name + "\nAttached time: " + ( Time.time - attachTime ).ToString( "F2" );
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called when this attached GameObject becomes the primary attached object
|
||||
//-------------------------------------------------
|
||||
private void OnHandFocusAcquired( Hand hand )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// Called when another attached GameObject becomes the primary attached object
|
||||
//-------------------------------------------------
|
||||
private void OnHandFocusLost( Hand hand )
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8bb563c4e716d2c4181e187d9be248db
|
||||
timeCreated: 1436457614
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {fileID: 2800000, guid: b93fe5c516cf6ed4b9153ec790f856e2, type: 3}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user