This commit is contained in:
何嘉峣 2025-03-19 11:15:28 +08:00
parent f48739c74e
commit ff1f6a6aa6
77 changed files with 4947 additions and 1100 deletions

8
Assets/3rdParty/FFmpegPlayer.meta vendored Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 44bfe336952214b4b8ea2c9816a9f736
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e9e2d520cc3634142b9c27af10f662fc
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2,17 +2,15 @@
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000 --- !u!21 &2100000
Material: Material:
serializedVersion: 8 serializedVersion: 6
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: Hologram3Animated 1 m_Name: YAxisFlip
m_Shader: {fileID: 4800000, guid: afae2a8343baebb4b94e80159c03f46f, type: 3} m_Shader: {fileID: 4800000, guid: 5fb25f805051e424da7c4313ff27ffba, type: 3}
m_ValidKeywords: [] m_ShaderKeywords:
m_InvalidKeywords: m_LightmapFlags: 4
- _EMISSION
m_LightmapFlags: 1
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
@ -25,10 +23,6 @@ Material:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _CirclesTexture:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap: - _DetailAlbedoMap:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
@ -41,20 +35,12 @@ Material:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _DistortionTex:
m_Texture: {fileID: 2800000, guid: 3ef5b3d0acd79c3499f502f1b991678a, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap: - _EmissionMap:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 1e2b54f757fa8354ba721358a91d2909, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 2800000, guid: 3aac3087967ea4fae858ec0494fd24d9, type: 3}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:
@ -69,39 +55,23 @@ Material:
m_Texture: {fileID: 0} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _VertDeformTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats: m_Floats:
- _BumpScale: 1 - _BumpScale: 1
- _CirclesCount: 0.15
- _Cutoff: 0.5 - _Cutoff: 0.5
- _DetailNormalMapScale: 1 - _DetailNormalMapScale: 1
- _DstBlend: 0 - _DstBlend: 0
- _FillWithRed: 0
- _GlossMapScale: 1 - _GlossMapScale: 1
- _Glossiness: 0.5 - _Glossiness: 0.5
- _GlossyReflections: 1 - _GlossyReflections: 1
- _Metallic: 0 - _Metallic: 0
- _Mode: 0 - _Mode: 0
- _OcclusionStrength: 1 - _OcclusionStrength: 1
- _Outline: 0.123
- _Parallax: 0.02 - _Parallax: 0.02
- _Scale: 112
- _SmoothnessTextureChannel: 0 - _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _Speed: 4
- _SrcBlend: 1 - _SrcBlend: 1
- _UVSec: 0 - _UVSec: 0
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _Color: {r: 0.20063233, g: 1.7560755, b: 3.898, a: 1} - _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _MainColor: {r: 0.783, g: 0.783, b: 0.783, a: 1}
- _MaskColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
- _OutlineColor: {r: 0.3949295, g: 1.1676176, b: 0.5281516, a: 1}
- _Params: {r: 0.25, g: 2.55, b: -2.74, a: 34.47}
- _Params2: {r: 0.5, g: 4, b: 1, a: 0}
m_BuildTextureStacks: []

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 3b224e530003ca54cafe49a1ab8ba53b guid: b29ff7a5719aa3b42926022e1958d1e6
NativeFormatImporter: NativeFormatImporter:
externalObjects: {} externalObjects: {}
mainObjectFileID: 2100000 mainObjectFileID: 2100000

View File

@ -0,0 +1,51 @@
Shader "YAxisFlip"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
// No culling or depth
Cull Off ZWrite Off ZTest Always
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f
{
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
};
v2f vert (appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
sampler2D _MainTex;
fixed4 frag (v2f i) : SV_Target
{
i.uv.y *= -1;
fixed4 col = tex2D(_MainTex, i.uv);
return col;
}
ENDCG
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 5fb25f805051e424da7c4313ff27ffba
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8bb6361c365179a4e94d224e6332bd10
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,624 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7019923732568046581
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923732568046580}
- component: {fileID: 7019923732568046582}
- component: {fileID: 7019923732568046583}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7019923732568046580
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732568046581}
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: 7019923733181189564}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0.4}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0}
--- !u!222 &7019923732568046582
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732568046581}
m_CullTransparentMesh: 0
--- !u!114 &7019923732568046583
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732568046581}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 35
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 1
m_AlignByGeometry: 0
m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Laoding...
--- !u!1 &7019923732685556922
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923732685556917}
- component: {fileID: 7019923732685556918}
- component: {fileID: 7019923732685556919}
- component: {fileID: 7019923732685556916}
m_Layer: 5
m_Name: InputField
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &7019923732685556917
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732685556922}
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: 7019923733631683907}
- {fileID: 7019923734436980779}
m_Father: {fileID: 7019923733507936420}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7019923732685556918
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732685556922}
m_CullTransparentMesh: 0
--- !u!114 &7019923732685556919
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732685556922}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 1
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!114 &7019923732685556916
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923732685556922}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d199490a83bb2b844b9695cbf13b01ef, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 0, g: 0, b: 0, a: 0.5019608}
m_HighlightedColor: {r: 0, g: 0, b: 0, a: 0.5019608}
m_PressedColor: {r: 0, g: 0, b: 0, a: 0.5019608}
m_SelectedColor: {r: 0, g: 0, b: 0, a: 0.5019608}
m_DisabledColor: {r: 0, g: 0, b: 0, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Highlighted
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 7019923732685556919}
m_TextComponent: {fileID: 7019923734436980778}
m_Placeholder: {fileID: 7019923733631683906}
m_ContentType: 0
m_InputType: 0
m_AsteriskChar: 42
m_KeyboardType: 0
m_LineType: 2
m_HideMobileInput: 0
m_CharacterValidation: 0
m_CharacterLimit: 0
m_OnEndEdit:
m_PersistentCalls:
m_Calls: []
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_CustomCaretColor: 0
m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412}
m_Text:
m_CaretBlinkRate: 0.85
m_CaretWidth: 1
m_ReadOnly: 0
--- !u!1 &7019923733181189565
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923733181189564}
- component: {fileID: 7019923733181189566}
- component: {fileID: 7019923733181189567}
m_Layer: 5
m_Name: Mask
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7019923733181189564
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733181189565}
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: 7019923734445129623}
- {fileID: 7019923732568046580}
m_Father: {fileID: 7019923733507936420}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7019923733181189566
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733181189565}
m_CullTransparentMesh: 0
--- !u!114 &7019923733181189567
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733181189565}
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: 0, g: 0, b: 0, a: 0.2509804}
m_RaycastTarget: 0
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
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!1 &7019923733507936421
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923733507936420}
- component: {fileID: 7019923733507936422}
- component: {fileID: 7019923733507936423}
- component: {fileID: 7019923733507936417}
m_Layer: 5
m_Name: FFmpegPlayerBasicRawImage
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7019923733507936420
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733507936421}
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: 7019923733181189564}
- {fileID: 7019923732685556917}
m_Father: {fileID: 0}
m_RootOrder: 0
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.5, y: 0.5}
--- !u!222 &7019923733507936422
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733507936421}
m_CullTransparentMesh: 0
--- !u!114 &7019923733507936423
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733507936421}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 2100000, guid: b29ff7a5719aa3b42926022e1958d1e6, type: 2}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Texture: {fileID: 0}
m_UVRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
--- !u!114 &7019923733507936417
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733507936421}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7267e2882ac697645b0aa499473b0c6e, type: 3}
m_Name:
m_EditorClassIdentifier:
UseTcp: 0
NotSynFrameRate: 0
BackgroundRunning: 0
mask: {fileID: 7019923733181189567}
loading: {fileID: 7019923734445129622}
text: {fileID: 7019923732568046583}
input: {fileID: 7019923732685556916}
inactiveColor: {r: 0, g: 0, b: 0, a: 0}
autoReconnect: 1
frameUpdateTimeTimeout: 2
reconnectWaitTime: 5
loop: 0
--- !u!1 &7019923733631683904
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923733631683907}
- component: {fileID: 7019923733631683901}
- component: {fileID: 7019923733631683906}
m_Layer: 5
m_Name: Placeholder
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7019923733631683907
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733631683904}
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: 7019923732685556917}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -40, y: -40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7019923733631683901
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733631683904}
m_CullTransparentMesh: 0
--- !u!114 &7019923733631683906
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923733631683904}
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: 0.5}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 2
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text:
--- !u!1 &7019923734436980776
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923734436980779}
- component: {fileID: 7019923734436980773}
- component: {fileID: 7019923734436980778}
m_Layer: 5
m_Name: Text
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7019923734436980779
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923734436980776}
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: 7019923732685556917}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -40, y: -40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7019923734436980773
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923734436980776}
m_CullTransparentMesh: 0
--- !u!114 &7019923734436980778
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923734436980776}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 24
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 2
m_MaxSize: 40
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 0
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text:
--- !u!1 &7019923734445129620
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7019923734445129623}
- component: {fileID: 7019923734445129617}
- component: {fileID: 7019923734445129622}
m_Layer: 5
m_Name: Loading
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7019923734445129623
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923734445129620}
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: 7019923733181189564}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.6}
m_AnchorMax: {x: 0.5, y: 0.6}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7019923734445129617
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923734445129620}
m_CullTransparentMesh: 0
--- !u!114 &7019923734445129622
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7019923734445129620}
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: 0
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 60b9573e462b73b4fabedab15a058861, 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

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 29abca0a5de62fd46a97aa1e8df9be5d
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8d18c1c4f8c66164ba8c30964c99e161
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: e805b33f7cd608f4d8f843b5e7be28e7 guid: f47b4d5b6e2ad84479ad06cc7bed714a
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2e8ea488bb84cd542a3b77f7d717d709
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,193 @@
using UnityEngine;
using UnityEngine.UI;
using System;
using System.Threading.Tasks;
using UnityEngine.EventSystems;
namespace Hanatric.Unity.Video.FFmpegPlayer
{
[RequireComponent(typeof(RawImage))]
public class FFmpegPlayerBasicRawImage : FFmpegPlayerMono, IPointerDownHandler
{
private RawImage rawimage;
public Image mask;
public Image loading;
public Text text;
public InputField input;
public Func<Task<string>> GetConnectUrl;
public Color inactiveColor = Color.clear;
public bool autoReconnect = true;
public float frameUpdateTimeTimeout = 2;
public float reconnectWaitTime = 5;
public bool loop = false;
private float reconnectWaitTimeRemain;
private float frameUpdateTimeTimeoutRemain;
private string exceptionMsg;
private string info;
private bool refreshInfo = false;
private Material mat;
private void Awake()
{
rawimage = GetComponent<RawImage>();
mat = rawimage.material;
reconnectWaitTimeRemain = float.MaxValue;
frameUpdateTimeTimeoutRemain = float.MaxValue;
input.onEndEdit.AddListener((s) =>
{
input.gameObject.SetActive(false);
});
}
protected override void Update()
{
base.Update();
HandleExceptionMsg();
rawimage.color = rawimage.texture ? Color.white : inactiveColor;
rawimage.material = rawimage.texture ? mat : null;
loading.transform.Rotate(0, 0, -300 * Time.deltaTime);
if (refreshInfo)
{
refreshInfo = false;
info = info.Substring(0, info.Length > 2000 ? 2000 : info.Length);
input.text = info;
}
}
protected override void BeforeOpenCall()
{
base.BeforeOpenCall();
exceptionMsg = "";
reconnectWaitTimeRemain = float.MaxValue;
text.text = "正在加载/连接";
info = $"[Info] Url:{Url}" + "\r\n" + info;
}
private void HandleExceptionMsg()
{
if (!string.IsNullOrWhiteSpace(exceptionMsg))
{
text.text = exceptionMsg;
exceptionMsg = "";
mask.gameObject.SetActive(true);
if (reconnectWaitTimeRemain > reconnectWaitTime)
{
reconnectWaitTimeRemain = reconnectWaitTime;
}
}
if (reconnectWaitTimeRemain <= reconnectWaitTime)
{
reconnectWaitTimeRemain -= Time.deltaTime;
}
if (reconnectWaitTimeRemain < 0)
{
reconnectWaitTimeRemain = float.MaxValue;
if (autoReconnect)
{
text.text = "正在重新加载/连接";
DoReconnect();
}
}
frameUpdateTimeTimeoutRemain -= Time.deltaTime;
if (frameUpdateTimeTimeoutRemain < 0)
{
mask.gameObject.SetActive(true);
}
}
private async void DoReconnect()
{
if (GetConnectUrl != null)
{
string url = await Task.Run(GetConnectUrl);
Url = url;
}
Reconnect();
}
protected override void OnTextureCreatedFunc(Texture2D texture)
{
base.OnTextureCreatedFunc(texture);
rawimage.texture = texture;
}
public override void OnVideoOpenedInThread()
{
base.OnVideoOpenedInThread();
info = $"[Info] Width:{Width},Height:{Height},FPStime:{FrameRateFTime}" + "\r\n" + info;
refreshInfo = true;
}
public override void OnExceptionInThread(FFmpegLibMsg msg, int decoderIndex)
{
base.OnExceptionInThread(msg, decoderIndex);
if (msg == FFmpegLibMsg.UrlOpenException)
{
exceptionMsg = "无法连接或连接超时";
}
if (msg == FFmpegLibMsg.UrlBlank || msg == FFmpegLibMsg.UrlError)
{
exceptionMsg = "URL格式错误";
}
if (msg == FFmpegLibMsg.UrlFileNotExist)
{
exceptionMsg = "文件不存在";
}
if (msg == FFmpegLibMsg.EOF)
{
exceptionMsg = "EOF 流终止";
if (loop)
{
reconnectWaitTimeRemain = -1;
}
}
if (msg == FFmpegLibMsg.ReadTimeout)
{
exceptionMsg = "流读取超时";
}
if (msg == FFmpegLibMsg.DecoderOverNum)
{
exceptionMsg = "打开失败";
reconnectWaitTimeRemain = 0.5f;
}
Debug.Log("[Exception] " + msg.Message + " " + Url);
info = "[Exception] " + msg.Message + "\r\n" + info;
refreshInfo = true;
}
protected override void OnTextureRefreshedFunc(Texture2D texture)
{
base.OnTextureRefreshedFunc(texture);
frameUpdateTimeTimeoutRemain = frameUpdateTimeTimeout;
mask.gameObject.SetActive(false);
}
public override void Stop()
{
base.Stop();
reconnectWaitTimeRemain = float.MaxValue;
exceptionMsg = "";
}
public void OnPointerDown(PointerEventData eventData)
{
if (Input.GetMouseButtonDown(1))
{
input.gameObject.SetActive(true);
input.Select();
}
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 09aeb0ead9beb6c44a6f5c4e9ec093a7 guid: 7267e2882ac697645b0aa499473b0c6e
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,35 @@
using Hanatric.Unity.Video.FFmpegPlayer;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraInfo
{
public string Username = "admin";
public string Password = "pyss2017";
public string IP = "221.214.127.18";
}
public class FFmpegTest : MonoBehaviour
{
public CameraInfo cameraInfo = new CameraInfo();
public FFmpegPlayerBasicRawImage mediaPlayer;
private void Awake()
{
FFmpegPlayerMono.Init(Application.streamingAssetsPath + "/FFmpegNativeLib");
}
void Start()
{
//string liveUrl = "rtsp://" + cameraInfo.Username + ":" + cameraInfo.Password + "@" + cameraInfo.IP + ":8200/cam/realmonitor?channel=19&subtype=0&proto=Private3";
string liveUrl = "rtsp://admin:pyss2017@221.214.127.18:8200/cam/realmonitor?channel=19&subtype=0&proto=Private3";
OnLoadVideo(liveUrl);
}
private void OnLoadVideo(string url)
{
mediaPlayer.UseTcp = true;
mediaPlayer.OpenPlayUrl(url);
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: ea224f96bdd58a447b16fb2769480ebd guid: fe0e2e2df9c3ea5449272cde546c50f0
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a2f41cc047f8a2c4baaef8bf14a27a2f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,99 @@
fileFormatVersion: 2
guid: 60b9573e462b73b4fabedab15a058861
TextureImporter:
fileIDToRecycleName: {}
externalObjects: {}
serializedVersion: 9
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: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: -1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
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: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 2
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
- serializedVersion: 2
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 18ab073658dffac488e4109c81c233d4
vertices: []
indices:
edges: []
weights: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d9312cfac17a5284b8a22fef6d92f77d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,40 @@
%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
m_IsAlphaChannelOptional: 0
serializedVersion: 5
m_Width: 1920
m_Height: 1080
m_AntiAliasing: 1
m_MipCount: -1
m_DepthStencilFormat: 94
m_ColorFormat: 8
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_EnableRandomWrite: 0
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
m_ShadowSamplingMode: 2

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3ca06bcd0f7f00a488bb6b1f74210498
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 8400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 697b43533f79a204fa2717e86b4ee362
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 108 KiB

After

Width:  |  Height:  |  Size: 108 KiB

View File

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

View File

@ -0,0 +1,33 @@
fileFormatVersion: 2
guid: 27aa588ba143f2f43a6a2b9253bb7d14
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

View File

@ -276,7 +276,7 @@ Canvas:
m_VertexColorAlwaysGammaSpace: 1 m_VertexColorAlwaysGammaSpace: 1
m_AdditionalShaderChannelsFlag: 0 m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0 m_SortingLayerID: 0
m_SortingOrder: 0 m_SortingOrder: 1
m_TargetDisplay: 0 m_TargetDisplay: 0
--- !u!114 &6625366287185914433 --- !u!114 &6625366287185914433
MonoBehaviour: MonoBehaviour:

View File

@ -29,7 +29,8 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children:
- {fileID: 7019923733199851180}
m_Father: {fileID: 7088280481294372234} m_Father: {fileID: 7088280481294372234}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -214,6 +215,7 @@ GameObject:
- component: {fileID: 137097028423108035} - component: {fileID: 137097028423108035}
- component: {fileID: 5848933257833123067} - component: {fileID: 5848933257833123067}
- component: {fileID: 2723227813549168099} - component: {fileID: 2723227813549168099}
- component: {fileID: 345750869}
m_Layer: 5 m_Layer: 5
m_Name: Image m_Name: Image
m_TagString: Untagged m_TagString: Untagged
@ -232,7 +234,11 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children:
- {fileID: 7019923733995663093}
- {fileID: 7019923732621098981}
- {fileID: 7019923734465098528}
- {fileID: 7019923732807825196}
m_Father: {fileID: 4133293442060212630} m_Father: {fileID: 4133293442060212630}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -279,6 +285,30 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &345750869
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5091667672139413992}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8a8695521f0d02e499659fee002a26c2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 0
m_Right: 0
m_Top: 0
m_Bottom: 0
m_ChildAlignment: 0
m_StartCorner: 0
m_StartAxis: 1
m_CellSize: {x: 192, y: 108}
m_Spacing: {x: 8, y: 8}
m_Constraint: 1
m_ConstraintCount: 2
--- !u!1 &6594024293897062915 --- !u!1 &6594024293897062915
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -308,13 +338,14 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children:
- {fileID: 7019923733737558079}
m_Father: {fileID: 3071825273538588491} m_Father: {fileID: 3071825273538588491}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 668.7, y: -37.886536} m_AnchoredPosition: {x: 668.69995, y: -37.886475}
m_SizeDelta: {x: -1526.4248, y: -848.4091} m_SizeDelta: {x: -1526.4248, y: -848.4091}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2482948682945832243 --- !u!222 &2482948682945832243
@ -466,6 +497,802 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1001 &366067867
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2571498225186387187}
m_Modifications:
- target: {fileID: 7019923733507936416, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: url
value: "D:\\Work\\UnityProjects\\FFmpegDemo\\Assets\\StreamingAssets\\360\u6444\u50CF\u5934_SMT\u8D34\u7247\u70B9\u4F4D.mp4"
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: loop
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: UseTcp
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: NotSynFrameRate
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: BackgroundRunning
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.x
value: 396.54
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.y
value: 231.95
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 198.27
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.y
value: -115.97
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Name
value: FFmpegPlayerBasicRawImage (4)
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
--- !u!224 &7019923733737558079 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
m_PrefabInstance: {fileID: 366067867}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &624311889
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 137097028423108035}
m_Modifications:
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.x
value: 192
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.y
value: 108
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 96
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.y
value: -54
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Name
value: FFmpegPlayerBasicRawImage
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
--- !u!224 &7019923733995663093 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
m_PrefabInstance: {fileID: 624311889}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &959652740
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 137097028423108035}
m_Modifications:
- target: {fileID: 7019923733507936416, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: url
value: "D:\\Work\\UnityProjects\\FFmpegDemo\\Assets\\StreamingAssets\\360\u6444\u50CF\u5934_SMT\u8D34\u7247\u70B9\u4F4D.mp4"
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: loop
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: UseTcp
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: NotSynFrameRate
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: BackgroundRunning
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.x
value: 192
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.y
value: 108
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 296
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.y
value: -54
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Name
value: FFmpegPlayerBasicRawImage (1)
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
--- !u!224 &7019923734465098528 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
m_PrefabInstance: {fileID: 959652740}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1462103873
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 137097028423108035}
m_Modifications:
- target: {fileID: 7019923733507936416, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: url
value: "D:\\Work\\UnityProjects\\FFmpegDemo\\Assets\\StreamingAssets\\360\u6444\u50CF\u5934_SMT\u8D34\u7247\u70B9\u4F4D.mp4"
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: loop
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: UseTcp
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: NotSynFrameRate
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: BackgroundRunning
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.x
value: 192
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.y
value: 108
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 96
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.y
value: -170
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Name
value: FFmpegPlayerBasicRawImage
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
--- !u!224 &7019923732621098981 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
m_PrefabInstance: {fileID: 1462103873}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1514874760
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 137097028423108035}
m_Modifications:
- target: {fileID: 7019923733507936416, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: url
value: "D:\\Work\\UnityProjects\\FFmpegDemo\\Assets\\StreamingAssets\\360\u6444\u50CF\u5934_SMT\u8D34\u7247\u70B9\u4F4D.mp4"
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: loop
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: UseTcp
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: NotSynFrameRate
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: BackgroundRunning
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.x
value: 192
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.y
value: 108
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 296
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.y
value: -170
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Name
value: FFmpegPlayerBasicRawImage (2)
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
--- !u!224 &7019923732807825196 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
m_PrefabInstance: {fileID: 1514874760}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1973755400
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2555617291740645666}
m_Modifications:
- target: {fileID: 7019923733507936416, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: url
value: "D:\\Work\\UnityProjects\\FFmpegDemo\\Assets\\StreamingAssets\\360\u6444\u50CF\u5934_SMT\u8D34\u7247\u70B9\u4F4D.mp4"
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: loop
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: UseTcp
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: NotSynFrameRate
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936417, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: BackgroundRunning
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchorMin.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.x
value: 396.54
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_SizeDelta.y
value: 231.95
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.x
value: 198.27
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_AnchoredPosition.y
value: -115.97
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_Name
value: FFmpegPlayerBasicRawImage (3)
objectReference: {fileID: 0}
- target: {fileID: 7019923733507936421, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
--- !u!224 &7019923733199851180 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 7019923733507936420, guid: 29abca0a5de62fd46a97aa1e8df9be5d, type: 3}
m_PrefabInstance: {fileID: 1973755400}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &648339790267301424 --- !u!1001 &648339790267301424
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -1,445 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 2
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &508495946
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 508495950}
- component: {fileID: 508495949}
- component: {fileID: 508495948}
- component: {fileID: 508495947}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!65 &508495947
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 508495946}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &508495948
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 508495946}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!33 &508495949
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 508495946}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &508495950
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 508495946}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0.098}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &705507993
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 705507995}
- component: {fileID: 705507994}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &705507994
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 705507993}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 1
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &705507995
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 705507993}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &963194225
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 963194228}
- component: {fileID: 963194227}
- component: {fileID: 963194226}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &963194226
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_Enabled: 1
--- !u!20 &963194227
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &963194228
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1141479442
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1141479443}
- component: {fileID: 1141479444}
m_Layer: 0
m_Name: Manager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1141479443
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1141479442}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1141479444
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1141479442}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 09aeb0ead9beb6c44a6f5c4e9ec093a7, type: 3}
m_Name:
m_EditorClassIdentifier:
testObj: {fileID: 508495946}

View File

@ -1,347 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
OcclusionCullingSettings:
m_ObjectHideFlags: 0
serializedVersion: 2
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: 0.25
backfaceThreshold: 100
m_SceneGUID: 00000000000000000000000000000000
m_OcclusionCullingData: {fileID: 0}
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
m_FogDensity: 0.01
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
m_AmbientIntensity: 1
m_AmbientMode: 0
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
m_HaloStrength: 0.5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
m_DefaultReflectionMode: 0
m_DefaultReflectionResolution: 128
m_ReflectionBounces: 1
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
m_ObjectHideFlags: 0
serializedVersion: 12
m_GIWorkflowMode: 1
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
m_IndirectOutputScale: 1
m_AlbedoBoost: 1
m_EnvironmentLightingMode: 0
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 0
m_LightmapEditorSettings:
serializedVersion: 12
m_Resolution: 2
m_BakeResolution: 40
m_AtlasSize: 1024
m_AO: 0
m_AOMaxDistance: 1
m_CompAOExponent: 1
m_CompAOExponentDirect: 0
m_ExtractAmbientOcclusion: 0
m_Padding: 2
m_LightmapParameters: {fileID: 0}
m_LightmapsBakeMode: 1
m_TextureCompression: 1
m_FinalGather: 0
m_FinalGatherFiltering: 1
m_FinalGatherRayCount: 256
m_ReflectionCompression: 2
m_MixedBakeMode: 2
m_BakeBackend: 1
m_PVRSampling: 1
m_PVRDirectSampleCount: 32
m_PVRSampleCount: 500
m_PVRBounces: 2
m_PVREnvironmentSampleCount: 500
m_PVREnvironmentReferencePointCount: 2048
m_PVRFilteringMode: 2
m_PVRDenoiserTypeDirect: 0
m_PVRDenoiserTypeIndirect: 0
m_PVRDenoiserTypeAO: 0
m_PVRFilterTypeDirect: 0
m_PVRFilterTypeIndirect: 0
m_PVRFilterTypeAO: 0
m_PVREnvironmentMIS: 0
m_PVRCulling: 1
m_PVRFilteringGaussRadiusDirect: 1
m_PVRFilteringGaussRadiusIndirect: 5
m_PVRFilteringGaussRadiusAO: 2
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0}
m_LightingSettings: {fileID: 0}
--- !u!196 &4
NavMeshSettings:
serializedVersion: 2
m_ObjectHideFlags: 0
m_BuildSettings:
serializedVersion: 2
agentTypeID: 0
agentRadius: 0.5
agentHeight: 2
agentSlope: 45
agentClimb: 0.4
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
minRegionArea: 2
manualCellSize: 0
cellSize: 0.16666667
manualTileSize: 0
tileSize: 256
accuratePlacement: 0
maxJobWorkers: 0
preserveTilesOutsideBounds: 0
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1 &705507993
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 705507995}
- component: {fileID: 705507994}
m_Layer: 0
m_Name: Directional Light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &705507994
Light:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 705507993}
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
m_Intensity: 1
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
m_CookieSize: 10
m_Shadows:
m_Type: 2
m_Resolution: -1
m_CustomResolution: -1
m_Strength: 1
m_Bias: 0.05
m_NormalBias: 0.4
m_NearPlane: 0.2
m_CullingMatrixOverride:
e00: 1
e01: 0
e02: 0
e03: 0
e10: 0
e11: 1
e12: 0
e13: 0
e20: 0
e21: 0
e22: 1
e23: 0
e30: 0
e31: 0
e32: 0
e33: 1
m_UseCullingMatrixOverride: 0
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingLayerMask: 1
m_Lightmapping: 1
m_LightShadowCasterMode: 0
m_AreaSize: {x: 1, y: 1}
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_UseBoundingSphereOverride: 0
m_UseViewFrustumForShadowCasterCull: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
--- !u!4 &705507995
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 705507993}
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
m_LocalPosition: {x: 0, y: 3, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &963194225
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 963194228}
- component: {fileID: 963194227}
- component: {fileID: 963194226}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &963194226
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_Enabled: 1
--- !u!20 &963194227
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &963194228
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 963194225}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1141479442
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1141479443}
- component: {fileID: 1141479444}
m_Layer: 0
m_Name: Manager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1141479443
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1141479442}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1141479444
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1141479442}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7c0d98835e075144c986b47a2a969d32, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -9,7 +9,7 @@ public class CarControl : MonoBehaviour
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.ChangeCarSwitch, ChangeCarSwitch); if (Bootstrap.Instance != null) Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.ChangeCarSwitch, ChangeCarSwitch);
} }
// Update is called once per frame // Update is called once per frame
@ -38,14 +38,9 @@ public class CarControl : MonoBehaviour
} }
await Task.Delay(50); await Task.Delay(50);
} }
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) => Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeChildrenMat, false);
{ Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.StepSwitching);
p.Init($"您的爱车已入场!",3); canRotate = !canRotate;
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeChildrenMat,false);
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车辆入场");
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.StepSwitching);
canRotate = !canRotate;
});
} }
public async void StepSwitching() public async void StepSwitching()

View File

@ -54,8 +54,8 @@ public class ChangeObjMat : MonoBehaviour
{ {
m_RecordRendererList.Add(m_RendererList[i].materials.ToList()); m_RecordRendererList.Add(m_RendererList[i].materials.ToList());
} }
Bootstrap.Instance.eventCenter.AddEventListener<bool>(Enum_EventType.ChangeChildrenMat, ChangeChildrenMat); if (Bootstrap.Instance != null) Bootstrap.Instance.eventCenter.AddEventListener<bool>(Enum_EventType.ChangeChildrenMat, ChangeChildrenMat);
Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.StepSwitching, StepSwitching); if (Bootstrap.Instance != null) Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.StepSwitching, StepSwitching);
ChangeChildrenMat(true); ChangeChildrenMat(true);
} }
public void ChangeChildrenMat(bool Change) public void ChangeChildrenMat(bool Change)
@ -95,9 +95,16 @@ public class ChangeObjMat : MonoBehaviour
IEnumerator StepSwitchingCoroutine() IEnumerator StepSwitchingCoroutine()
{ {
Debug.Log($"StepSwitching"); Debug.Log("StepSwitchingCoroutine");
#region #region
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
{
p.Init($"您的爱车已入场!", 3);
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车辆入场");
});
yield return new WaitForSeconds(5); yield return new WaitForSeconds(5);
#endregion
#region
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车牌识别"); Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车牌识别");
m_XKObj.SetActive(true); m_XKObj.SetActive(true);
m_CPObj.SetActive(true); m_CPObj.SetActive(true);
@ -133,7 +140,7 @@ public class ChangeObjMat : MonoBehaviour
{ {
p.Init($"车外观检测已完成!", 5); p.Init($"车外观检测已完成!", 5);
}); });
yield return new WaitForSeconds(6); yield return new WaitForSeconds(5);
#endregion #endregion
#region #region
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) => if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
@ -246,16 +253,13 @@ public class ChangeObjMat : MonoBehaviour
#region #region
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) => if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
{ {
p.Init($"电池均衡操作已完成,请扫描屏幕右下角的二维码获取均衡报告!感谢您的支持和配合,祝您一路平安!",0); p.Init($"电池均衡操作已完成,请扫描屏幕右下角的二维码获取均衡报告!感谢您的支持和配合,祝您一路平安!", 0);
}); });
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"电池诊所检测及均衡全流程已完成"); Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"电池诊所检测及均衡全流程已完成");
m_XKObj.SetActive(false); m_XKObj.SetActive(false);
m_Obj.SetActive(true); m_Obj.SetActive(true);
#endregion #endregion
} }
private void OnDisable() private void OnDisable()
{ {
if (Bootstrap.Instance != null) if (Bootstrap.Instance != null)

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6ca4ad0cc57d1db4f8b22ac2161380a2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,6 +1,10 @@
using LitJson;
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting; using Unity.VisualScripting;
using Unity.VisualScripting.Antlr3.Runtime;
using UnityEngine; using UnityEngine;
using static InterfaceManager;
public class Bootstrap : SingletonMono<Bootstrap> public class Bootstrap : SingletonMono<Bootstrap>
{ {
public static UIManager UIMgr { get; private set; } public static UIManager UIMgr { get; private set; }
@ -32,25 +36,25 @@ public class Bootstrap : SingletonMono<Bootstrap>
}); });
} }
private IEnumerator Post()
{
Dictionary<string, string> headers = new Dictionary<string, string>();
WWWForm wWWForm = new WWWForm();
headers.Add("", "");
yield return new WaitForSeconds(0.5f);
StartCoroutine(PostString("", wWWForm, headers, "", data =>
{
Debug.Log("Ìá½»½á¹û:" + data);
}));
}
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
if (Input.GetKeyDown("s"))
{
UIMgr.ShowPanel<UI_TestPanel>(this, E_UI_Layer.Bot, (panel) =>
{
panel.OnInit();
Debug.Log("UI_TestPanelÏÔʾ³É¹¦");
});
}
if (Input.GetKeyDown("h"))
{
UIMgr.HidePanel<UI_TestPanel>();
}
if (Input.GetKeyDown("e"))
{
eventCenter.EventTrigger(Enum_EventType.TestEvent1);
}
} }

View File

@ -0,0 +1,498 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using LitJson;
using System.IO;
/// <summary>
/// 接口及接口访问
/// </summary>
public static class InterfaceManager
{
private static string _IP = "172.16.1.144:8080";
public static string IP
{
get { return _IP; }
set
{
if (_IP != value)
_IP = value;
}
}
public static string IpAddress { get => string.Format("http://{0}", IP); }
#region
public static string Url_ { get => IpAddress + "/"; }
#endregion
/// <summary>
/// 读取数据
/// </summary>
/// <typeparam name="T">类型</typeparam>
/// <param name="path"></param>
/// <returns></returns>
public static T LoadData<T>(string fileName, JsonType type = JsonType.LitJson) where T : new()
{
//路径
string path = Application.streamingAssetsPath + "/" + fileName + ".json";
if (!File.Exists(path))
{
path = Application.persistentDataPath + "/" + fileName + ".json";
}
if (!File.Exists(path))
{
return new T();
}
string jsonStr = File.ReadAllText(path);
T data = new T();
switch (type)
{
case JsonType.LitJson:
data = JsonMapper.ToObject<T>(jsonStr);
break;
case JsonType.JsonUtility:
data = JsonUtility.FromJson<T>(jsonStr);
break;
}
return data;
}
public static string GetLocalTxt(string path)
{
using (System.IO.StreamReader reader = new System.IO.StreamReader(path)) { return reader.ReadToEnd(); }
}
public static IEnumerator GetBytes(string url, Action<byte[]> callback)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.data);
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
public static IEnumerator GetString(string url, Action<string> callback)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
Debug.LogError("UnityWebRequest.Result.InProgress");
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
Debug.LogError("UnityWebRequest.Result.ConnectionError");
break;
case UnityWebRequest.Result.ProtocolError:
Debug.LogError("UnityWebRequest.Result.ProtocolError");
break;
case UnityWebRequest.Result.DataProcessingError:
Debug.LogError("UnityWebRequest.Result.DataProcessingError");
break;
default:
break;
}
}
}
public static IEnumerator GetString(string url, int time, Action<string> callback)
{
while (true)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return new WaitForSeconds(time); // 每隔 time 秒调用一次接口
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
}
public static IEnumerator GetString(string url, int time, Dictionary<string, string> header, Action<string> callback)
{
while (true)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return new WaitForSeconds(time); // 每隔 time 秒调用一次接口
foreach (var item in header)
{
www.SetRequestHeader(item.Key, item.Value);
}
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
}
public static IEnumerator GetJsonString<T>(string url, Action<T> callback = null, string success_code = "200")
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
var Jobject = JObject.Parse(www.downloadHandler.text);
if (Jobject["code"].ToString() == success_code)
{
callback?.Invoke(JsonConvert.DeserializeObject<T>(Jobject["data"].ToString()));
}
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
public static IEnumerator GetJsonString<T>(string url, Dictionary<string, string> header, Action<T> callback = null, string success_code = "200")
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
foreach (var item in header)
{
www.SetRequestHeader(item.Key, item.Value);
}
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
//Debug.Log("根据标识返回人员信息...:" + www.downloadHandler.text);
var Jobject = JObject.Parse(www.downloadHandler.text);
if (Jobject["code"].ToString() == success_code)
{
callback?.Invoke(JsonConvert.DeserializeObject<T>(Jobject["data"].ToString()));
}
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
public static IEnumerator PostJsonString<T>(string url, Action<T> callback = null, string success_code = "200")
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
var Jobject = JObject.Parse(www.downloadHandler.text);
if (Jobject["code"].ToString() == success_code)
{
callback?.Invoke(JsonConvert.DeserializeObject<T>(Jobject["data"].ToString()));
}
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
public static IEnumerator PostJsonString<T>(string url, WWWForm formdata, Dictionary<string, string> headers = null, Action<T> callback = null, string success_code = "200")
{
using (UnityWebRequest www = UnityWebRequest.Post(url, formdata))
{
foreach (var item in headers)
{
www.SetRequestHeader(item.Key, item.Value);
}
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
var Jobject = JObject.Parse(www.downloadHandler.text);
if (Jobject["code"].ToString() == success_code)
{
callback?.Invoke(JsonConvert.DeserializeObject<T>(Jobject["data"].ToString()));
}
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
public static IEnumerator PostString(string url, WWWForm formdata, Dictionary<string, string> headers = null, Action<string> callback = null)
{
using (UnityWebRequest www = UnityWebRequest.Post(url, formdata))
{
foreach (var item in headers)
{
www.SetRequestHeader(item.Key, item.Value);
}
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
Debug.Log(www.result);
break;
case UnityWebRequest.Result.ProtocolError:
Debug.Log(www.result);
break;
case UnityWebRequest.Result.DataProcessingError:
Debug.Log(www.result);
break;
default:
break;
}
}
}
public static IEnumerator PostString(string url, WWWForm formdata, Dictionary<string, string> headers = null, string jsonBody = null, Action<string> callback = null)
{
using (UnityWebRequest www = UnityWebRequest.Post(url, formdata))
{
foreach (var item in headers)
{
www.SetRequestHeader(item.Key, item.Value);
}
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes(jsonBody);
www.uploadHandler = new UploadHandlerRaw(jsonToSend);
// 设置 Content-Type 为 application/json
www.SetRequestHeader("Content-Type", "application/json");
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
Debug.Log(www.result);
break;
case UnityWebRequest.Result.ProtocolError:
Debug.Log(www.result);
break;
case UnityWebRequest.Result.DataProcessingError:
Debug.Log(www.result);
break;
default:
break;
}
}
}
public static IEnumerator GetString(string url, Dictionary<string, string> headers = null, int time = 50, Action<string> callback = null)
{
while (true)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return new WaitForSeconds(time); // 每隔 time 秒调用一次接口
foreach (var item in headers)
{
www.SetRequestHeader(item.Key, item.Value);
}
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
}
public static IEnumerator GetString(string url, Dictionary<string, string> headers = null, Action<string> callback = null)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
foreach (var item in headers)
{
www.SetRequestHeader(item.Key, item.Value);
}
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
public static IEnumerator GetString(string url, Dictionary<string, string> headers = null, string jsonBody = null, Action<string> callback = null)
{
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
foreach (var item in headers)
{
www.SetRequestHeader(item.Key, item.Value);
} // 将请求体设置为原始JSON数据
byte[] jsonToSend = new System.Text.UTF8Encoding().GetBytes(jsonBody);
www.uploadHandler = new UploadHandlerRaw(jsonToSend);
yield return www.SendWebRequest();
switch (www.result)
{
case UnityWebRequest.Result.InProgress:
break;
case UnityWebRequest.Result.Success:
callback?.Invoke(www.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
break;
case UnityWebRequest.Result.ProtocolError:
break;
case UnityWebRequest.Result.DataProcessingError:
break;
default:
break;
}
}
}
/// <summary>
/// UnityWebRequest Post 表单请求
/// </summary>
/// <param name="url">接口地址</param>
/// <param name="fromDic">form字典</param>
/// <param name="textCallBack">text回调</param>
/// <returns></returns>
public static IEnumerator UnityWebRequestPost(string url, Dictionary<string, string> fromDic, Action<string> textCallBack)
{
WWWForm form = new WWWForm();
foreach (var item in fromDic)
{
form.AddField(item.Key, item.Value);
}
UnityWebRequest request = UnityWebRequest.Post(url, form);
request.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded");
yield return request.SendWebRequest();
switch (request.result)
{
case UnityWebRequest.Result.Success:
textCallBack?.Invoke(request.downloadHandler.text);
break;
case UnityWebRequest.Result.ConnectionError:
Debug.LogError("ConnectionError");
break;
case UnityWebRequest.Result.DataProcessingError:
Debug.LogError("DataProcessingError");
break;
case UnityWebRequest.Result.ProtocolError:
Debug.LogError("ProtocolError");
break;
case UnityWebRequest.Result.InProgress:
break;
default:
break;
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 7c0d98835e075144c986b47a2a969d32 guid: 01ba73d6b92f17c418b9f9f4ff932e0c
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -35,7 +35,7 @@ public class WebViewController : MonoBehaviour
{ {
Debug.Log("网页加载完成."); Debug.Log("网页加载完成.");
canvasWebViewPrefab.WebView.ConsoleMessageLogged += HandleConsoleMessage; canvasWebViewPrefab.WebView.ConsoleMessageLogged += HandleConsoleMessage;
//Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeCarSwitch); Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeCarSwitch);
await Task.Delay(2000); await Task.Delay(2000);
WGDetection.SetActive(true); WGDetection.SetActive(true);
HWDetection.SetActive(true); HWDetection.SetActive(true);

View File

@ -8,9 +8,6 @@ using UnityEngine;
/// </summary> /// </summary>
public enum Enum_EventType public enum Enum_EventType
{ {
TestEvent1,
TestEvent2,
TestEvent3,
UpdateProgress, UpdateProgress,
AudioPlay, AudioPlay,
ChangeCarSwitch, ChangeCarSwitch,

View File

@ -1,30 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class TestScene1Manager : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown("v"))
{
Bootstrap.UIMgr.ShowPanel<UI_LoadingPanel>(this, E_UI_Layer.System, (panel) =>
{
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 0.1f);
Bootstrap.Instance.scenesManager.LoadSceneAsyn(this, "TestScene", () =>
{
Debug.Log("¼ÓÔØ³¡¾°³É¹¦");
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 0.9f);
});
});
}
}
}

View File

@ -1,55 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using UnityEngine;
public class TestSceneManager : MonoBehaviour
{
public GameObject testObj;
void Start()
{
Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.TestEvent1, TestFunc1);
Bootstrap.Instance.eventCenter.AddEventListener<int>(Enum_EventType.TestEvent2, TestFunc2);
Bootstrap.Instance.eventCenter.AddEventListener<string>(Enum_EventType.TestEvent3, TestFunc3);
}
void Update()
{
if (Input.GetKeyDown("v"))
{
Bootstrap.UIMgr.ShowPanel<UI_LoadingPanel>(this, E_UI_Layer.System, (panel) =>
{
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 0.1f);
Bootstrap.Instance.scenesManager.LoadSceneAsyn(this, "TestScene1", () =>
{
Debug.Log("¼ÓÔØ³¡¾°³É¹¦");
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.UpdateProgress, 0.9f);
});
});
}
}
public void TestFunc1()
{
testObj.GetComponent<MeshRenderer>().material.color = new Color(Random.Range(1, 255f) / 255f, Random.Range(1, 255f) / 255f, Random.Range(1, 255f) / 255f, 1f);
}
public void TestFunc2(int idnex)
{
Debug.Log($"TestFunc2++{idnex}");
}
public void TestFunc3(string info)
{
Debug.Log($"TestFunc3++{info}");
}
private void OnDisable()
{
Debug.Log("OnDisable");
if (Bootstrap.Instance != null)
{
Bootstrap.Instance.eventCenter.RemoveEventListener(Enum_EventType.TestEvent1, TestFunc1);
Bootstrap.Instance.eventCenter.RemoveEventListener<int>(Enum_EventType.TestEvent2, TestFunc2);
Bootstrap.Instance.eventCenter.RemoveEventListener<string>(Enum_EventType.TestEvent3, TestFunc3);
}
}
}

View File

@ -1,76 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using UnityEngine;
using UnityEngine.UI;
using Debug = UnityEngine.Debug;
public class UI_TestPanel : BasePanel
{
//public Button testBtn1;
//public Button testBtn2;
//public Button testBtn3;
public Image imageTest;
public Text textTest;
public int testInt;
public string testString;
public Color testColor = new Color();
protected override void Awake()
{
base.Awake();
//testBtn1 = GetControl<Button>("testBtn1");
//testBtn2 = GetControl<Button>("testBtn2");
//testBtn3 = GetControl<Button>("testBtn3");
imageTest = GetControl<Image>("imageTest");
textTest = GetControl<Text>("textTest");
Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.TestEvent1, UI_TestPanelTestFunc1);
}
private void UI_TestPanelTestFunc1()
{
testInt++;
Debug.Log("UI_TestPanel=TestFunc1收到信息==" + testInt);
}
public void OnInit()
{
Debug.Log("我被初始化了OnInit");
}
public override void ShowMe()
{
base.ShowMe();
Debug.Log("我显示出来我要干什么,比如我要通知别人干啥吗");
}
public override void HideMe()
{
base.HideMe();
Debug.Log("我关闭了,关闭我要什么");
}
protected override void OnClick(string btnPath)
{
base.OnClick(btnPath);
switch (btnPath)
{
case "testBtn1":
Debug.Log(1);
textTest.text = (testInt++).ToString();
break;
case "testBtn2":
Debug.Log(2);
testColor = new Color(Random.Range(1, 255f) / 255f, Random.Range(1, 255f) / 255f, Random.Range(1, 255f) / 255f, 1f);
imageTest.color = testColor;
break;
case "testBtn3":
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.TestEvent1);
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.TestEvent2, testInt);
textTest.text = "testBtn3333";
testString = $"<color={testColor}>{textTest.text + testInt}</color>";
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.TestEvent3, testString);
break;
}
}
}

View File

@ -1,48 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class testscene : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
LoadSceneWithProgress("TestScene1");
}
// Update is called once per frame
void Update()
{
}
//Òì²½¼ÓÔØ³¡¾°
public void LoadSceneAsync(string sceneName)
{
StartCoroutine(LoadScene(sceneName));
}
IEnumerator LoadScene(string sceneName)
{
AsyncOperation operation = Application.LoadLevelAsync(sceneName);
while (!operation.isDone)
{
yield return null;
}
}
//Òì²½¼ÓÔØ³¡¾°²¢Ìí¼Ó½ø¶ÈÌõ
public void LoadSceneWithProgress(string sceneName)
{
StartCoroutine(LoadSceneWithProgressCoroutine(sceneName));
}
IEnumerator LoadSceneWithProgressCoroutine(string sceneName)
{
AsyncOperation operation = Application.LoadLevelAsync(sceneName);
while (!operation.isDone)
{
float progress = Mathf.Clamp01(operation.progress / 0.9f);
Debug.Log(progress);
yield return null;
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 591fea7b3b8855c47b74ce6d20c8508c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 2632dbca835ae3548bde3bf4e36ed7a3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 4e2c55ee46fa8d2459c2f30c97ccf553 guid: 6bd6c5e27051d3d40a93d52ecb6392a3
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
userData: userData:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eb24e054becd70942a371e3a8d9fcfd3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a277e815425f3c648845a2f571408b59
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2dc422077ddcd0a469f312bd67344ff5
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 84b6bb55851b4a84db546a332e9779e1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eca1a0ba0b4730848b5bf9684a37af38
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a3a8296530b5c57439b6f8dab4de79ca
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8b79b551a2857834db322f6152f09d26
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1 +1 @@
http://172.16.1.113:8081/#/integratedData http://172.16.1.177:8080/#/integratedData

8
Assets/Vuplex.meta Normal file
View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ef595a71880834a50a4aea19f85c4139
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

7
Assets/Vuplex.zip.meta Normal file
View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 761496d0969525e4d97c4c3845309960
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: