From 2022d254016b2c048addfaa2fcd0aae5001fc49e Mon Sep 17 00:00:00 2001 From: Lihao7788 <2470304407@qq.com> Date: Fri, 6 Jun 2025 13:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=AC=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Materials/Material #2128567782.mat | 2 +- .../Materials/Material #2128567783.mat | 2 +- Assets/_Scenes/TrainExam.unity | 18 +++++++++++++----- .../SceneCtrls/VideoRawTextureClearCtrl.cs | 6 ++++++ ProjectSettings/ProjectSettings.asset | 6 +++--- 5 files changed, 24 insertions(+), 10 deletions(-) diff --git a/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567782.mat b/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567782.mat index abbb8de..5108a14 100644 --- a/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567782.mat +++ b/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567782.mat @@ -114,7 +114,7 @@ Material: - _ZWrite: 1 m_Colors: - _BaseColor: {r: 0.8, g: 0.46728, b: 0, a: 0.6786941} - - _Color: {r: 0.8, g: 0.46728, b: 0, a: 0.6786941} + - _Color: {r: 0.8, g: 0.4672799, b: 0, a: 0.6786941} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567783.mat b/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567783.mat index 508712f..fccd79a 100644 --- a/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567783.mat +++ b/Assets/Art/Models/LouDi/A_NiuChangJing/Animation/SM_Niu_ZhusheB_Bozi_an02ren/Materials/Material #2128567783.mat @@ -117,7 +117,7 @@ Material: - _ZWrite: 0 m_Colors: - _BaseColor: {r: 0.4, g: 0.4, b: 0.4, a: 0.41339868} - - _Color: {r: 0.4, g: 0.4, b: 0.4, a: 0.41339868} + - _Color: {r: 0.39999998, g: 0.39999998, b: 0.39999998, a: 0.41339868} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} m_BuildTextureStacks: [] diff --git a/Assets/_Scenes/TrainExam.unity b/Assets/_Scenes/TrainExam.unity index 15d5ca8..79a753c 100644 --- a/Assets/_Scenes/TrainExam.unity +++ b/Assets/_Scenes/TrainExam.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 203844588} - m_IndirectSpecularColor: {r: 0.46169704, g: 0.51241934, b: 0.5899347, a: 1} + m_IndirectSpecularColor: {r: 0.1802854, g: 0.22571693, b: 0.30692482, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -8630,7 +8630,7 @@ VideoPlayer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 366650827} m_Enabled: 1 - m_VideoClip: {fileID: 32900000, guid: 25ed6500075c2e745854fcd588a2cf09, type: 3} + m_VideoClip: {fileID: 0} m_TargetCameraAlpha: 1 m_TargetCamera3DLayout: 0 m_TargetCamera: {fileID: 0} @@ -8685,6 +8685,8 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Name: m_EditorClassIdentifier: + name: YB1.mp4 + player: {fileID: 366650828} --- !u!1 &372873548 GameObject: m_ObjectHideFlags: 0 @@ -13732,7 +13734,7 @@ VideoPlayer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 567124862} m_Enabled: 1 - m_VideoClip: {fileID: 32900000, guid: 98f29b80958da2a479d3744e90414cb5, type: 3} + m_VideoClip: {fileID: 0} m_TargetCameraAlpha: 1 m_TargetCamera3DLayout: 0 m_TargetCamera: {fileID: 0} @@ -13785,6 +13787,8 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Name: m_EditorClassIdentifier: + name: ptxz.mp4 + player: {fileID: 567124863} --- !u!1001 &569014527 PrefabInstance: m_ObjectHideFlags: 0 @@ -41105,7 +41109,7 @@ VideoPlayer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1798040924} m_Enabled: 1 - m_VideoClip: {fileID: 32900000, guid: 109c42e122557614f8ef2eac0a7332bd, type: 3} + m_VideoClip: {fileID: 0} m_TargetCameraAlpha: 1 m_TargetCamera3DLayout: 0 m_TargetCamera: {fileID: 0} @@ -41145,6 +41149,8 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Name: m_EditorClassIdentifier: + name: YB2.mp4 + player: {fileID: 0} --- !u!1001 &1800198917 PrefabInstance: m_ObjectHideFlags: 0 @@ -45526,7 +45532,7 @@ VideoPlayer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1998220147} m_Enabled: 1 - m_VideoClip: {fileID: 32900000, guid: ff5a13da64a9de44284b7b06d186c925, type: 3} + m_VideoClip: {fileID: 0} m_TargetCameraAlpha: 1 m_TargetCamera3DLayout: 0 m_TargetCamera: {fileID: 0} @@ -45566,6 +45572,8 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Name: m_EditorClassIdentifier: + name: YB3.mp4 + player: {fileID: 0} --- !u!4 &2000648963 stripped Transform: m_CorrespondingSourceObject: {fileID: 2184484655070752240, guid: e2da9a3a2ae31db439ba7b3d76c3783c, diff --git a/Assets/_Scripts/Application/SceneCtrls/VideoRawTextureClearCtrl.cs b/Assets/_Scripts/Application/SceneCtrls/VideoRawTextureClearCtrl.cs index 8e8752d..892e215 100644 --- a/Assets/_Scripts/Application/SceneCtrls/VideoRawTextureClearCtrl.cs +++ b/Assets/_Scripts/Application/SceneCtrls/VideoRawTextureClearCtrl.cs @@ -10,9 +10,15 @@ namespace ZXK.LouDiXvMuNiu { public class VideoRawTextureClearCtrl : MonoBehaviour { + public string name; + public VideoPlayer player; RenderTexture _renderTexture; private void Awake() { + + player = transform.GetComponent(); + player.url = Application.streamingAssetsPath + "/AVProVideo/" + name; + _renderTexture = transform.GetComponent().targetTexture; } private void OnEnable() diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index 5aa5e15..bc30f99 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -44,8 +44,8 @@ PlayerSettings: m_HolographicTrackingLossScreen: {fileID: 0} defaultScreenWidth: 1024 defaultScreenHeight: 768 - defaultScreenWidthWeb: 1280 - defaultScreenHeightWeb: 720 + defaultScreenWidthWeb: 1920 + defaultScreenHeightWeb: 1080 m_StereoRenderingPath: 0 m_ActiveColorSpace: 1 unsupportedMSAAFallback: 0 @@ -137,7 +137,7 @@ PlayerSettings: vulkanEnableLateAcquireNextImage: 0 vulkanEnableCommandBufferRecycling: 1 loadStoreDebugModeEnabled: 0 - bundleVersion: 0.1.0 + bundleVersion: 0.1.1 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0