修改脚本英文名称

This commit is contained in:
李浩 2025-06-06 13:33:22 +08:00
parent dd1d818411
commit 2022d25401
5 changed files with 24 additions and 10 deletions

View File

@ -114,7 +114,7 @@ Material:
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 0.8, g: 0.46728, b: 0, a: 0.6786941} - _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} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []

View File

@ -117,7 +117,7 @@ Material:
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _BaseColor: {r: 0.4, g: 0.4, b: 0.4, a: 0.41339868} - _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} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 203844588} 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 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -8630,7 +8630,7 @@ VideoPlayer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 366650827} m_GameObject: {fileID: 366650827}
m_Enabled: 1 m_Enabled: 1
m_VideoClip: {fileID: 32900000, guid: 25ed6500075c2e745854fcd588a2cf09, type: 3} m_VideoClip: {fileID: 0}
m_TargetCameraAlpha: 1 m_TargetCameraAlpha: 1
m_TargetCamera3DLayout: 0 m_TargetCamera3DLayout: 0
m_TargetCamera: {fileID: 0} m_TargetCamera: {fileID: 0}
@ -8685,6 +8685,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: YB1.mp4
player: {fileID: 366650828}
--- !u!1 &372873548 --- !u!1 &372873548
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -13732,7 +13734,7 @@ VideoPlayer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 567124862} m_GameObject: {fileID: 567124862}
m_Enabled: 1 m_Enabled: 1
m_VideoClip: {fileID: 32900000, guid: 98f29b80958da2a479d3744e90414cb5, type: 3} m_VideoClip: {fileID: 0}
m_TargetCameraAlpha: 1 m_TargetCameraAlpha: 1
m_TargetCamera3DLayout: 0 m_TargetCamera3DLayout: 0
m_TargetCamera: {fileID: 0} m_TargetCamera: {fileID: 0}
@ -13785,6 +13787,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: ptxz.mp4
player: {fileID: 567124863}
--- !u!1001 &569014527 --- !u!1001 &569014527
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -41105,7 +41109,7 @@ VideoPlayer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1798040924} m_GameObject: {fileID: 1798040924}
m_Enabled: 1 m_Enabled: 1
m_VideoClip: {fileID: 32900000, guid: 109c42e122557614f8ef2eac0a7332bd, type: 3} m_VideoClip: {fileID: 0}
m_TargetCameraAlpha: 1 m_TargetCameraAlpha: 1
m_TargetCamera3DLayout: 0 m_TargetCamera3DLayout: 0
m_TargetCamera: {fileID: 0} m_TargetCamera: {fileID: 0}
@ -41145,6 +41149,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: YB2.mp4
player: {fileID: 0}
--- !u!1001 &1800198917 --- !u!1001 &1800198917
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -45526,7 +45532,7 @@ VideoPlayer:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1998220147} m_GameObject: {fileID: 1998220147}
m_Enabled: 1 m_Enabled: 1
m_VideoClip: {fileID: 32900000, guid: ff5a13da64a9de44284b7b06d186c925, type: 3} m_VideoClip: {fileID: 0}
m_TargetCameraAlpha: 1 m_TargetCameraAlpha: 1
m_TargetCamera3DLayout: 0 m_TargetCamera3DLayout: 0
m_TargetCamera: {fileID: 0} m_TargetCamera: {fileID: 0}
@ -45566,6 +45572,8 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3} m_Script: {fileID: 11500000, guid: ba27086315b1ea34ba5c1497873d09b6, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
name: YB3.mp4
player: {fileID: 0}
--- !u!4 &2000648963 stripped --- !u!4 &2000648963 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: 2184484655070752240, guid: e2da9a3a2ae31db439ba7b3d76c3783c, m_CorrespondingSourceObject: {fileID: 2184484655070752240, guid: e2da9a3a2ae31db439ba7b3d76c3783c,

View File

@ -10,9 +10,15 @@ namespace ZXK.LouDiXvMuNiu
{ {
public class VideoRawTextureClearCtrl : MonoBehaviour public class VideoRawTextureClearCtrl : MonoBehaviour
{ {
public string name;
public VideoPlayer player;
RenderTexture _renderTexture; RenderTexture _renderTexture;
private void Awake() private void Awake()
{ {
player = transform.GetComponent<VideoPlayer>();
player.url = Application.streamingAssetsPath + "/AVProVideo/" + name;
_renderTexture = transform.GetComponent<VideoPlayer>().targetTexture; _renderTexture = transform.GetComponent<VideoPlayer>().targetTexture;
} }
private void OnEnable() private void OnEnable()

View File

@ -44,8 +44,8 @@ PlayerSettings:
m_HolographicTrackingLossScreen: {fileID: 0} m_HolographicTrackingLossScreen: {fileID: 0}
defaultScreenWidth: 1024 defaultScreenWidth: 1024
defaultScreenHeight: 768 defaultScreenHeight: 768
defaultScreenWidthWeb: 1280 defaultScreenWidthWeb: 1920
defaultScreenHeightWeb: 720 defaultScreenHeightWeb: 1080
m_StereoRenderingPath: 0 m_StereoRenderingPath: 0
m_ActiveColorSpace: 1 m_ActiveColorSpace: 1
unsupportedMSAAFallback: 0 unsupportedMSAAFallback: 0
@ -137,7 +137,7 @@ PlayerSettings:
vulkanEnableLateAcquireNextImage: 0 vulkanEnableLateAcquireNextImage: 0
vulkanEnableCommandBufferRecycling: 1 vulkanEnableCommandBufferRecycling: 1
loadStoreDebugModeEnabled: 0 loadStoreDebugModeEnabled: 0
bundleVersion: 0.1.0 bundleVersion: 0.1.1
preloadedAssets: [] preloadedAssets: []
metroInputSource: 0 metroInputSource: 0
wsaTransparentSwapchain: 0 wsaTransparentSwapchain: 0