本地优化

This commit is contained in:
2026-06-03 22:05:03 +08:00
parent a6509ea9ee
commit fea67869f2
18 changed files with 996 additions and 65 deletions

View File

@@ -11,6 +11,8 @@ namespace Script
{
void SetUp();
void HangUp();
RenderTexture GetRenderStreamingTexture();
}
public class RenderStreamingSystem : AbstractSystem, IRenderStreamingSystem
@@ -232,6 +234,15 @@ namespace Script
Debug.Log($"[MultiParticipantHost] Participant UI removed: {participantId}");
}
public RenderTexture GetRenderStreamingTexture()
{
if (_yuvToRenderTexture.localRenderTexture == null)
{
Debug.LogError("RenderTexture 未初始化");
return null;
}
return _yuvToRenderTexture.localRenderTexture;
}
#endregion