Skip to content

Instantly share code, notes, and snippets.

(function(Script) {
var _run = Script.prototype.run;
Script.prototype.run = function(ctx, domain, fn) {
if (typeof domain === 'object') {
domain.require = function(module) {
return require(module);
};
domain.context = function() { // access Context via context()
return ctx;
};
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ModifyProjectionMatrix : MonoBehaviour {
public Camera camera;
public Matrix4x4 currentMatrix;
public Matrix4x4 newMatrix;
@chadobado
chadobado / TestPoseInput.cs
Last active August 5, 2021 22:44
Fusion input / networked property testing
//using System;
using System.Collections;
using System.Collections.Generic;
using Fusion;
using Fusion.Sockets;
using UnityEngine;
public struct TestPoseInput : INetworkInput
{
public Vector3 position;
# Apple Macbook Pro M1-Pro (16-inch, 2021)
# MacOS Monterey 12.1
# nvm 0.39.1 (installed via brew)
# node v14.7.1
# yarn 1.22.17
scaffold-eth % yarn install --force
yarn install v1.22.17
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...