Skip to content

Commit c321c9c

Browse files
author
uhu
committed
feat: video
1 parent 8e5a5f1 commit c321c9c

File tree

6 files changed

+275
-92
lines changed

6 files changed

+275
-92
lines changed

Demo/API/Assets/Resources/Video Material.mat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ Material:
88
m_PrefabInstance: {fileID: 0}
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: Video Material
11-
m_Shader: {fileID: 10703, guid: 0000000000000000f000000000000000, type: 0}
12-
m_Parent: {fileID: 0}
13-
m_ModifiedSerializedProperties: 0
11+
m_Shader: {fileID: 10708, guid: 0000000000000000f000000000000000, type: 0}
1412
m_ValidKeywords: []
1513
m_InvalidKeywords: []
1614
m_LightmapFlags: 4
@@ -19,7 +17,6 @@ Material:
1917
m_CustomRenderQueue: -1
2018
stringTagMap: {}
2119
disabledShaderPasses: []
22-
m_LockedProperties:
2320
m_SavedProperties:
2421
serializedVersion: 3
2522
m_TexEnvs:

Demo/API/Assets/Scenes/Main.unity

Lines changed: 217 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@ RectTransform:
15851585
m_ConstrainProportionsScale: 0
15861586
m_Children: []
15871587
m_Father: {fileID: 1586432807}
1588-
m_RootOrder: 16
1588+
m_RootOrder: 17
15891589
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
15901590
m_AnchorMin: {x: 0.5, y: 0.5}
15911591
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -2660,7 +2660,7 @@ RectTransform:
26602660
- {fileID: 543787561}
26612661
- {fileID: 1768399494}
26622662
m_Father: {fileID: 1586432807}
2663-
m_RootOrder: 15
2663+
m_RootOrder: 16
26642664
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
26652665
m_AnchorMin: {x: 0.5, y: 0.5}
26662666
m_AnchorMax: {x: 0.5, y: 0.5}
@@ -2718,6 +2718,140 @@ MonoBehaviour:
27182718
m_Name:
27192719
m_EditorClassIdentifier:
27202720
input: {fileID: 1379490560}
2721+
--- !u!1 &1400238659
2722+
GameObject:
2723+
m_ObjectHideFlags: 0
2724+
m_CorrespondingSourceObject: {fileID: 0}
2725+
m_PrefabInstance: {fileID: 0}
2726+
m_PrefabAsset: {fileID: 0}
2727+
serializedVersion: 6
2728+
m_Component:
2729+
- component: {fileID: 1400238660}
2730+
- component: {fileID: 1400238663}
2731+
- component: {fileID: 1400238662}
2732+
- component: {fileID: 1400238661}
2733+
m_Layer: 5
2734+
m_Name: Video Demo
2735+
m_TagString: Untagged
2736+
m_Icon: {fileID: 0}
2737+
m_NavMeshLayer: 0
2738+
m_StaticEditorFlags: 0
2739+
m_IsActive: 1
2740+
--- !u!224 &1400238660
2741+
RectTransform:
2742+
m_ObjectHideFlags: 0
2743+
m_CorrespondingSourceObject: {fileID: 0}
2744+
m_PrefabInstance: {fileID: 0}
2745+
m_PrefabAsset: {fileID: 0}
2746+
m_GameObject: {fileID: 1400238659}
2747+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
2748+
m_LocalPosition: {x: 0, y: 0, z: 0}
2749+
m_LocalScale: {x: 1, y: 1, z: 1}
2750+
m_ConstrainProportionsScale: 0
2751+
m_Children:
2752+
- {fileID: 2097063054}
2753+
m_Father: {fileID: 1586432807}
2754+
m_RootOrder: 15
2755+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
2756+
m_AnchorMin: {x: 0.5, y: 0.5}
2757+
m_AnchorMax: {x: 0.5, y: 0.5}
2758+
m_AnchoredPosition: {x: 340, y: -332}
2759+
m_SizeDelta: {x: 320, y: 82}
2760+
m_Pivot: {x: 0.5, y: 0.5}
2761+
--- !u!114 &1400238661
2762+
MonoBehaviour:
2763+
m_ObjectHideFlags: 0
2764+
m_CorrespondingSourceObject: {fileID: 0}
2765+
m_PrefabInstance: {fileID: 0}
2766+
m_PrefabAsset: {fileID: 0}
2767+
m_GameObject: {fileID: 1400238659}
2768+
m_Enabled: 1
2769+
m_EditorHideFlags: 0
2770+
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
2771+
m_Name:
2772+
m_EditorClassIdentifier:
2773+
m_Navigation:
2774+
m_Mode: 3
2775+
m_WrapAround: 0
2776+
m_SelectOnUp: {fileID: 0}
2777+
m_SelectOnDown: {fileID: 0}
2778+
m_SelectOnLeft: {fileID: 0}
2779+
m_SelectOnRight: {fileID: 0}
2780+
m_Transition: 1
2781+
m_Colors:
2782+
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
2783+
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
2784+
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
2785+
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
2786+
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
2787+
m_ColorMultiplier: 1
2788+
m_FadeDuration: 0.1
2789+
m_SpriteState:
2790+
m_HighlightedSprite: {fileID: 0}
2791+
m_PressedSprite: {fileID: 0}
2792+
m_SelectedSprite: {fileID: 0}
2793+
m_DisabledSprite: {fileID: 0}
2794+
m_AnimationTriggers:
2795+
m_NormalTrigger: Normal
2796+
m_HighlightedTrigger: Highlighted
2797+
m_PressedTrigger: Pressed
2798+
m_SelectedTrigger: Selected
2799+
m_DisabledTrigger: Disabled
2800+
m_Interactable: 1
2801+
m_TargetGraphic: {fileID: 1400238662}
2802+
m_OnClick:
2803+
m_PersistentCalls:
2804+
m_Calls:
2805+
- m_Target: {fileID: 1586432809}
2806+
m_TargetAssemblyTypeName: Common, Assembly-CSharp
2807+
m_MethodName: ChangeScene
2808+
m_Mode: 3
2809+
m_Arguments:
2810+
m_ObjectArgument: {fileID: 0}
2811+
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
2812+
m_IntArgument: 9
2813+
m_FloatArgument: 0
2814+
m_StringArgument:
2815+
m_BoolArgument: 0
2816+
m_CallState: 2
2817+
--- !u!114 &1400238662
2818+
MonoBehaviour:
2819+
m_ObjectHideFlags: 0
2820+
m_CorrespondingSourceObject: {fileID: 0}
2821+
m_PrefabInstance: {fileID: 0}
2822+
m_PrefabAsset: {fileID: 0}
2823+
m_GameObject: {fileID: 1400238659}
2824+
m_Enabled: 1
2825+
m_EditorHideFlags: 0
2826+
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
2827+
m_Name:
2828+
m_EditorClassIdentifier:
2829+
m_Material: {fileID: 0}
2830+
m_Color: {r: 1, g: 1, b: 1, a: 1}
2831+
m_RaycastTarget: 1
2832+
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
2833+
m_Maskable: 1
2834+
m_OnCullStateChanged:
2835+
m_PersistentCalls:
2836+
m_Calls: []
2837+
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
2838+
m_Type: 1
2839+
m_PreserveAspect: 0
2840+
m_FillCenter: 1
2841+
m_FillMethod: 4
2842+
m_FillAmount: 1
2843+
m_FillClockwise: 1
2844+
m_FillOrigin: 0
2845+
m_UseSpriteMesh: 0
2846+
m_PixelsPerUnitMultiplier: 1
2847+
--- !u!222 &1400238663
2848+
CanvasRenderer:
2849+
m_ObjectHideFlags: 0
2850+
m_CorrespondingSourceObject: {fileID: 0}
2851+
m_PrefabInstance: {fileID: 0}
2852+
m_PrefabAsset: {fileID: 0}
2853+
m_GameObject: {fileID: 1400238659}
2854+
m_CullTransparentMesh: 0
27212855
--- !u!1 &1433912555
27222856
GameObject:
27232857
m_ObjectHideFlags: 0
@@ -3389,6 +3523,7 @@ RectTransform:
33893523
- {fileID: 663643640}
33903524
- {fileID: 2088431040}
33913525
- {fileID: 258580238}
3526+
- {fileID: 1400238660}
33923527
- {fileID: 1379490561}
33933528
- {fileID: 756701827}
33943529
m_Father: {fileID: 0}
@@ -4281,3 +4416,83 @@ CanvasRenderer:
42814416
m_PrefabAsset: {fileID: 0}
42824417
m_GameObject: {fileID: 2088431039}
42834418
m_CullTransparentMesh: 0
4419+
--- !u!1 &2097063053
4420+
GameObject:
4421+
m_ObjectHideFlags: 0
4422+
m_CorrespondingSourceObject: {fileID: 0}
4423+
m_PrefabInstance: {fileID: 0}
4424+
m_PrefabAsset: {fileID: 0}
4425+
serializedVersion: 6
4426+
m_Component:
4427+
- component: {fileID: 2097063054}
4428+
- component: {fileID: 2097063056}
4429+
- component: {fileID: 2097063055}
4430+
m_Layer: 5
4431+
m_Name: Text
4432+
m_TagString: Untagged
4433+
m_Icon: {fileID: 0}
4434+
m_NavMeshLayer: 0
4435+
m_StaticEditorFlags: 0
4436+
m_IsActive: 1
4437+
--- !u!224 &2097063054
4438+
RectTransform:
4439+
m_ObjectHideFlags: 0
4440+
m_CorrespondingSourceObject: {fileID: 0}
4441+
m_PrefabInstance: {fileID: 0}
4442+
m_PrefabAsset: {fileID: 0}
4443+
m_GameObject: {fileID: 2097063053}
4444+
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
4445+
m_LocalPosition: {x: 0, y: 0, z: 0}
4446+
m_LocalScale: {x: 1, y: 1, z: 1}
4447+
m_ConstrainProportionsScale: 0
4448+
m_Children: []
4449+
m_Father: {fileID: 1400238660}
4450+
m_RootOrder: 0
4451+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
4452+
m_AnchorMin: {x: 0, y: 0}
4453+
m_AnchorMax: {x: 1, y: 1}
4454+
m_AnchoredPosition: {x: 0, y: 0}
4455+
m_SizeDelta: {x: 0, y: 0}
4456+
m_Pivot: {x: 0.5, y: 0.5}
4457+
--- !u!114 &2097063055
4458+
MonoBehaviour:
4459+
m_ObjectHideFlags: 0
4460+
m_CorrespondingSourceObject: {fileID: 0}
4461+
m_PrefabInstance: {fileID: 0}
4462+
m_PrefabAsset: {fileID: 0}
4463+
m_GameObject: {fileID: 2097063053}
4464+
m_Enabled: 1
4465+
m_EditorHideFlags: 0
4466+
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
4467+
m_Name:
4468+
m_EditorClassIdentifier:
4469+
m_Material: {fileID: 0}
4470+
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
4471+
m_RaycastTarget: 1
4472+
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
4473+
m_Maskable: 1
4474+
m_OnCullStateChanged:
4475+
m_PersistentCalls:
4476+
m_Calls: []
4477+
m_FontData:
4478+
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
4479+
m_FontSize: 24
4480+
m_FontStyle: 0
4481+
m_BestFit: 0
4482+
m_MinSize: 1
4483+
m_MaxSize: 40
4484+
m_Alignment: 4
4485+
m_AlignByGeometry: 0
4486+
m_RichText: 1
4487+
m_HorizontalOverflow: 0
4488+
m_VerticalOverflow: 0
4489+
m_LineSpacing: 1
4490+
m_Text: "Video Demo\n(\u89C6\u9891)"
4491+
--- !u!222 &2097063056
4492+
CanvasRenderer:
4493+
m_ObjectHideFlags: 0
4494+
m_CorrespondingSourceObject: {fileID: 0}
4495+
m_PrefabInstance: {fileID: 0}
4496+
m_PrefabAsset: {fileID: 0}
4497+
m_GameObject: {fileID: 2097063053}
4498+
m_CullTransparentMesh: 0

0 commit comments

Comments
 (0)