Doxis posts
Button toggle script
Script to make objects toggle On/Off/Toggle/Do nothingCan be used in any project and allows anything to be toggled,Script requires Usharphttps://github.com/MerlinVR/UdonSharpExample code:public class ButtonToggleEditor : Editor{public override void OnInspectorGUI(){if (UdonSharpGUI.DrawDefaultUdonSharpBehaviourHeader(target)){return;}var toggle = (ButtonToggle)target;DrawDefaultInspector();var options = new string[]{
Low poly couch
Special couches reduced with low poly count.Use any material you want, gray preferred
Super optimised plane object
Compared to Unity's own Plane object that is made up to 10x10 planes in one, This optimised one is just "1 plane" instead.A lot less Tris & VertsJust import the file and use as your regular plane GameObject!
Automatically teleport any object without user input
This script let's you automatically teleport any object if a player walks into an area for example"Moving towards this area unhides this object or Teleport this object".Take the door example from the other door, But now it's an automatic door that does not require user input.Now when the player steps close to the door, The player also steps into a hidden object with a trigger that also does whatever you want in the script below.Ha...
Teleport any object
This script let's you teleport objects freely to a fixed position,Excellent use if you want to have a script that"If player opens door -> Teleport object to this position" to prevent having duplicated objects taking up storagepositionrotationlocalScaleRemove the comments " // " on networking if you would like it to sync between players as well.public class "FileName" : UdonSharpBehaviour{public GameObject[] targets;pub...
New avatar will be available at a later date!
New avatar being worked on, With a few different toggles such as skin colors and of course pc & quest support!
VRChat U# - Access Trigger System
What we utilize a string that we call"public string[] allowedUsers;"Remember that the Name that is this field needs to be a exact match to how it is in VRChat.A username that is "Abc123" Is not the same as "abc123"Import the script and place it on any object, It will turn itself into a interact button.Full script below.using System;using UdonSharp;using UnityEditor;using UnityEngine;using UnityEngine.UI;using VRC.SDKBase;u...
Spin the bottle script
Spin the bottle U# script,Attach it to a GameObject then you should be good to gousing UdonSharp;using UnityEngine;using VRC.SDKBase;using VRC.Udon; namespace Thry.SpinTheBottle{ public class Bottle : UdonSharpBehaviour { //===========Public Config fields=========== //Settings public int SPIN_COUNT = 5; [Tooltip("Degrees per second")] public float SPIN_SPEED = 720; [FieldChangeCallback(nameof(DoTargetPlayers))] public bool _doTargetPlayer...
ChargeRing Script
Have fun with this one!U#using UdonSharp;using UnityEngine;using VRC.SDKBase;using VRC.Udon;public class ChargeRing1 : UdonSharpBehaviour{public UdonBehaviour controller1;public UdonBehaviour controller2;public UdonBehaviour controller3;public UdonBehaviour controller4;[SerializeField]public ParticleSystem particle;[SerializeField]private float recastSecond = 5f;private float recastTime = 0;[UdonSynced]public bool isActive = true;[SerializeField]...
U# Interact toggle script
Here is a super simple script on how to toggle the state of an object in Unity via Udonsharp U# to be Active or Inactive (Visible or not)Create a new U# scriptName it something so you can remember it easily.Open up the script in your editor and then paste this as a public class:public class InteractToggle : UdonSharpBehaviour{public GameObject[] toggleObjects;public override void Interact(){foreach (GameObject toggleObject in toggleObjects){toggl...
Sync state of an object to new joiners
This script allows you to sync the state of any object to new joiners so they can see what the master sees. Perfect if you use conditions to turn on / off game objects while the world is active.Example:Pool table is turned offMaster turns on the pool tableNew joiners join with the pool table turned off but syncs towards the master, [GameObject -> ON], Then it will automatically toggle the pool table On for a much more seamless experience.
Udonsharp script to reset the scale of a object
This is a script with the purpose of resetting the scale of an object to 1,1,1 if you use change the scale of it game.I attached the script below.Cheers
Increase height script via slider
This can be used to increase the height of any object in your worlds.Create a new U# script.Name it witha fitting nameAttach the following script:using UdonSharp;using UnityEngine;using VRC.SDKBase;using VRC.Udon;using UnityEngine.UI;public class IncreaseH : UdonSharpBehaviour{public Slider _slide;public Transform Target;private Vector3 initPosition;[UdonSynced] private float valSync = 0;void Start(){initPosition = Target.localPosition;valSync = ...
Golf files
You can mostly ignore these, just a test

