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