๋น๋์ค ํ๋ ์ด์ด ๊ธฐ๋ฐ ์๋ฒ->ํด๋ผ์ด์ธํธ ๋คํธ์ํฌ ํจํท ์ก์์ ์์คํ
Server to Client Networking System Based on Video Player
- Send string data to VRChat instance in real time.
- (BETA) Request specific data from the server with the promised EndPoint.(BETA)
VRChat
Unity 2019.4
VRCSDK 3.0
UDONSharp
- Please download it here -> Release
- Import it into your Unity Project
- Place the "Toggle" prefab
npm install prism-vrc
yarn add prism-vrc
public class GetDataWithEvent : UdonSharpBehaviour
{
public void Prism_Data = ""; // Variable that is received when an event occurs and updated with processed data.
public void OnPrismReady() { return; } //Occurs when the prism system is ready.
public void OnPrismStart() { return; } //Occurs when the Prism system receives data.
public void OnPrismFrameChange() { return; } //Occurs when the prismatic system starts reading the next frame of the data.
public void OnPrismFrameReadEnd() { return; } //Occurs when the Prism system has read all the current frames.
public void OnPrismReadEnd() { return; } //Occurs when the Prism system reads all received data.
public void OnPrismException() //Occurs when the Prism system reads all received data.
{
Debug.LogError(Prism_Data); // When an exception occurs, the Prism_Data variable is updated with an exception message.
return;
}
}using Prism;
public class GetData : UdonSharpBehaviour
{
public DataReader DataReader;
public override void Interact()
{
Debug.Log(DataReader.Data);
}
}import Prism from "prism-vrc";
app.get('/', async (req, res) => {
res.writeHead(200, { 'Content-Type': 'video/mp4' });
res.end(await Prism("Hello, world!"));
});- Prism ์ด๋ฒคํธ๋ฅผ ์ฌ์ฉํ ์คํฌ๋ฆฝํธ๋ ๋ชจ๋ ํด๋น ๋ฆฌ์คํธ์ ๋ฑ๋กํด ์ฃผ์ธ์
- All scripts to use Prism Event must be registered in the appropriate list
- ๐ฒ Client Dev
- ๐ UI Design
- ๐ Project Manage
- ๐ง Networking
- โ
Q/A
- ๐ฒ Server Dev
- ๐ง Networking
- โ
Q/A
MIT License