本地优化
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user