Skip to content

kibalab/UdonPrism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

39 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation



๐Ÿ”ฆ PRISM NETWORK SYSTEM๐Ÿ”ฆ

๋น„๋””์˜ค ํ”Œ๋ ˆ์ด์–ด ๊ธฐ๋ฐ˜ ์„œ๋ฒ„->ํด๋ผ์ด์–ธํŠธ ๋„คํŠธ์›Œํฌ ํŒจํ‚ท ์†ก์ˆ˜์‹  ์‹œ์Šคํ…œ
Server to Client Networking System Based on Video Player



โญ Introdution / ์†Œ๊ฐœ

  • Send string data to VRChat instance in real time.
  • (BETA) Request specific data from the server with the promised EndPoint.(BETA)

๐Ÿ“ฆ Require / ํ•„์š”

VRChat
Unity 2019.4
VRCSDK 3.0
UDONSharp

๐Ÿงฐ Use / ์‚ฌ์šฉ

๐Ÿ“‚ Client Install (Unity/U#)

  • Please download it here -> Release
  • Import it into your Unity Project
  • Place the "Toggle" prefab
npm install prism-vrc

OR

yarn add prism-vrc

๐Ÿ“„ Client Code Example (UdonSharp)

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!"));
});

๐ŸŽš๏ธ Inspector


๐Ÿ–ง Event Behaviour Target List

  • Prism ์ด๋ฒคํŠธ๋ฅผ ์‚ฌ์šฉํ•  ์Šคํฌ๋ฆฝํŠธ๋Š” ๋ชจ๋‘ ํ•ด๋‹น ๋ฆฌ์ŠคํŠธ์— ๋“ฑ๋กํ•ด ์ฃผ์„ธ์š”
  • All scripts to use Prism Event must be registered in the appropriate list


Developer / ๊ฐœ๋ฐœ ์ฐธ์—ฌ

  • ๐ŸŽฒ Client Dev
  • ๐Ÿ— UI Design
  • ๐Ÿ““ Project Manage
  • ๐Ÿ–ง Networking
  • โœ… Q/A
  • ๐ŸŽฒ Server Dev
  • ๐Ÿ–ง Networking
  • โœ… Q/A


๋ผ์ด์„ผ์Šค / License

MIT License

About

Server to Client Networking System Based on Video Player

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors