Skip to content

Commit

Permalink
prefabs
Browse files Browse the repository at this point in the history
  • Loading branch information
icywind committed Sep 25, 2024
1 parent 85ae9c5 commit cfe044a
Show file tree
Hide file tree
Showing 13 changed files with 386 additions and 142 deletions.
6 changes: 3 additions & 3 deletions Assembly-CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/CustomRenderAudio/CustomRenderAudio.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/CustomCaptureVideo/StaticImagePush/TexturePush.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Basic/JoinChannelVideo/RemoteVideoCallQualityPanel.cs" />
<Compile Include="Assets/TEN/Controllers/Simple2PeopleChatDisplay.cs" />
<Compile Include="Assets/TEN/Scenes/TENDemoChat.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/AudioMixing/AudioMixing.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/MediaRecorder/MediaRecorder.cs" />
Expand All @@ -91,6 +92,7 @@
<Compile Include="Assets/TEN/Controllers/SoundVisualizer.cs" />
<Compile Include="Assets/TEN/Controllers/NetworkManager.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/SpatialAudioWithMediaPlayer/SpatialAudioWithMediaPlayer.cs" />
<Compile Include="Assets/TEN/Controllers/IChatTextDisplay.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Tools/PermissionHelper.cs" />
<Compile Include="Assets/TEN/Controllers/StreamTextProcessor.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/StartDirectCdnStreaming/StartDirectCdnStreaming.cs" />
Expand All @@ -109,6 +111,7 @@
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/SetVideoEncodeConfiguration/SetVideoEncodeConfiguration.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/JoinChannelWithUserAccount/JoinChannelWithUserAccount.cs" />
<Compile Include="Assets/TEN/Models/NetworkModels.cs" />
<Compile Include="Assets/TEN/Controllers/TENSessionManager.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/StartRtmpStreamWithTranscoding/StartRtmpStreamWithTranscoding.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/AppIdInput/AppIdInput.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/StartLocalVideoTranscoder/StartLocalVideoTranscoder.cs" />
Expand All @@ -122,9 +125,6 @@
<Compile Include="Assets/TEN/Utils/DragObject.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/StartRhythmPlayer/StartRhythmPlayer.cs" />
<Compile Include="Assets/Agora-RTC-Plugin/API-Example/Examples/Advanced/PushEncodedVideoImage/PushEncodedVideoImage.cs" />
<Compile Include="Assets/TEN/Controllers/IChatTextDisplay.cs" />
<Compile Include="Assets/TEN/Controllers/Simple2PeopleChatDisplay.cs" />
<Compile Include="Assets/TEN/Controllers/TENSessionManager.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Assets/Agora-RTC-Plugin/Agora-Unity-RTC-SDK/Plugins/macOS/AgoraRtcWrapperUnity.bundle/Contents/Frameworks/AgoraRtcKit.framework/Versions/A/Headers/IAgoraMediaStreamingSource.h" />
Expand Down
1 change: 1 addition & 0 deletions Assets/TEN/Models/TENAppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public void SetValue(TENConfigInput input)
this.ServerBaseURL = input.ServerBaseURL;
this.VoiceType = input.VoiceType;
this.GraphName = input.Graph;
this.Channel = input.ChannelName;
}

public override string ToString()
Expand Down
8 changes: 8 additions & 0 deletions Assets/TEN/Prefabs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions Assets/TEN/Prefabs/ChatController.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1915043117672248857
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1915043117672248863}
- component: {fileID: 1915043117672248862}
m_Layer: 0
m_Name: ChatController
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1915043117672248863
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1915043117672248857}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 970.02277, y: 657.6842, z: 0}
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!114 &1915043117672248862
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1915043117672248857}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b31b9d1028cc947d08019c0cb558ac35, type: 3}
m_Name:
m_EditorClassIdentifier:
7 changes: 7 additions & 0 deletions Assets/TEN/Prefabs/ChatController.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions Assets/TEN/Prefabs/TENManager.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8225566907052059540
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8225566907052059562}
- component: {fileID: 8225566907052059541}
m_Layer: 0
m_Name: TENManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8225566907052059562
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8225566907052059540}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 970.02277, y: 657.6842, z: 0}
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!114 &8225566907052059541
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8225566907052059540}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4a2a5a3dc6c124bde8a27db0822d1b70, type: 3}
m_Name:
m_EditorClassIdentifier:
7 changes: 7 additions & 0 deletions Assets/TEN/Prefabs/TENManager.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions Assets/TEN/Scenes/TENDemoChat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ public class TENDemoChat : MonoBehaviour
[SerializeField]
internal TENSessionManager TENSession;

[SerializeField]
internal SphereVisualizer Visualizer;


internal Logger Log;
internal IRtcEngine RtcEngine;

internal uint LocalUID { get; set; }

[SerializeField]
internal SphereVisualizer Visualizer;

[SerializeField]
Button CamButton;
Expand Down
Loading

0 comments on commit cfe044a

Please sign in to comment.