Skip to content

Instantly share code, notes, and snippets.

View scaffold-eth peer dependency warnings
# 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...
@chadobado
chadobado / TestPoseInput.cs
Last active Aug 5, 2021
Fusion input / networked property testing
View TestPoseInput.cs
//using System;
using System.Collections;
using System.Collections.Generic;
using Fusion;
using Fusion.Sockets;
using UnityEngine;
public struct TestPoseInput : INetworkInput
{
public Vector3 position;
View ModifyProjectionMatrix.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ModifyProjectionMatrix : MonoBehaviour {
public Camera camera;
public Matrix4x4 currentMatrix;
public Matrix4x4 newMatrix;
View event_extension.js
(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;
};