#udon-general

59 messages · Page 25 of 1

keen sierra
#

Let me joke.

#

:V

bleak widget
#

r/whooosh

rough beacon
#

if i add network at end of premade toggle. will that make it global?

rough beacon
#

ok. that dont work. -.-

floral dove
#

@rough beacon you need to send an event name and then create a custom event with that name. Check out the Sync examples in the UdonExampleScene to see how they work.

#

@bleak widget @fiery yoke the official place for Udon docs is here: https://docs.vrchat.com/docs/getting-started-with-udon
We don't have information on Sync yet because it's changing as we speak. Once we finalize the upgrades to sync, we'll document them and explain how it all works.

bleak widget
#

I have this script that is supposed to toggle the enabled state of my stage object and sync up the state for new people that join. It turns the object on but not back off. Not sure if it is a sync variable thing or if I am just missing something right in front of me

floral dove
#

@bleak widget - only the owner of the object can change the state but you're not checking for ownership

#

not sure if that's the issue but it may cause some confusion while you're testing

bleak widget
#

Yeah, I thought it may have been related to it but that didn't explain why I was able to turn it on but not off

floral dove
#

I'm assuming you've got StageStateSync with 'Sync' turned on and StageStateLocal with it turned off

bleak widget
#

Yes

#

Default values are both set to false

floral dove
#

I suggest you add the ownership check and then you can start logging what is happening to figure out what's causing the issue

bleak widget
#

How would I go about "logging" in udon?

floral dove
#

use Debug.Log, then open the Debug Console by pressing Right-Shift, backtick, 3 with the client open.

#

to turn on logging, you have to launch with some command-line args, but these are injected for you if you use Build & Test with your VRChat Client Path set.

bleak widget
#

Whoa, that is key combo. That makes it a lot easier to debug things for sure

floral dove
#

yeah, it's a little unwieldy but you get used to it. Feel free to press other numbers too, to see the other info you can get.

bleak widget
#

What node(s) is used to get owner again?

floral dove
#

@bleak widget - try using the Full Search using tab, type 'Owner' and see what comes up.

#

@warm mist - not really a question for this channel about developing things in udon, you can try #world-development if you'd like.

warm mist
#

Looks like a place to show off worlds mostly. But ok.

bleak widget
#

Is there a way to get the VRCPlayerApi of the player who triggered an Interact event?

floral dove
#

Interact events happen locally - you then fire off something networked if you want your world to react to it

bleak widget
#

Oh right. I can just use local player then duh

floral dove
#

that's right

bleak widget
#

Spent like 15 mins trying to figure out why my code wasn't changing when I loaded the world. Restarting unity fixed it lol

vivid river
#

yea, Unity can be a bitch sometimes

rough beacon
#

seem like every time i think i got it to work. it bite me -.-

#

i just wish someone just give me prebuild button that work on global. it ok, 1 day i get it right. 😦

bleak widget
#

Oof ok this is becoming really trippy. I moved a debug block to a different section and it made another part work completely differently 0.o

scarlet lake
#

Trying to setup a UI but can't seem to get words to appear, been trying to do what the UDON test scene does

#

Changed some stuff, still nothing

floral dove
#

@scarlet lake what does your graph look like? How is it different from the working demo graphs?

bleak widget
#

So I have a synced bool variable that doesn't seem to be syncing between each persons instance. I set up a very basic script that to test if the variable is changing across instances but it doesn't seem to be changing. I am sure that I am the owner before changing the value. It does change locally but not for everyone else

#

Anything I should look for to debug this issue?

floral dove
#

Do you mean it's not syncing between players? We use 'instances' to mean different copies of the same world, between which there is no data transfer.

bleak widget
#

Sorry, same instance of the world but different players

floral dove
#

Cool. Do the synced variables in the demo scene work for you?

bleak widget
#

Umm, I don't know? I would think so because I can change the one for my local player but other players aren't getting the same value change

floral dove
#

I mean - have you built the UdonExampleScene with its synced variables and seen them working? That helps to ensure that your workflow is all good.

bleak widget
#

How would I see anything different in the sample scene that mine? It looks like it works for my player in my own code as well, but the value doesn't change for anyone other than me

floral dove
bleak widget
#

Ah with two clients. I see. I didn't know if that would work for testing sync. I will try that next and look at my debug logs

floral dove
#

Yep, it's the easiest way to test sync for sure.

#

You may want to take a look at the Readme in the VRChat Examples folder, it explains all this and more! Great place to get started.

bleak widget
#

Ok, just tested and the sync worked just fine. The way I expected it to work

#

Maybe I should just try restarting my unity and reuploading

scarlet lake
#

@scarlet lake what does your graph look like? How is it different from the working demo graphs?
@floral dove I tried making it like the demo UI but smaller

restive dust
#

I haven't gotten into the networking side of Udon yet, but the idea of testing with two clients never occurred to me! Definitely a good thing to keep in mind for the future.

daring copper
#

anyone else having issues syncing?

#

testing a world, hadnt really changed anything, and only the master is getting updated

#

but no one else is getting synced

#

this was syncing perfectly find before

rough beacon
#

i cant get sync to work right. i sure other not having that problem

daring copper
#

so it is working...kind of

#

when i wasnt the master it worked consistently but was super laggy, like would take upwards of 7 seconds to sync an integer

#

it took her when she joined a world like 45 seonds to finally sync

tawny island
#

is it normal that you spend like 5minutes compiling shader variants?
//Edit: And how many FPS are needed for a good map feeling?

onyx knot
#

What is the right way to be able to pick up a object and when you let go for it to be not affected by gravity. I tried freezing it but that just makes it look super laggy xd

zealous mason
#

I'd guess this is what you're looking for, the 'use gravity' on the rigidbody component of your pickup item.

#

@onyx knot

bleak widget
#

Unless you want the object to float around like it is in space, you probably want to enable "Is Kinematic" as well

onyx knot
#

Thank you :D

proven vessel
#

Any idea if VRC_PlayerAudioOverride will be/is available in the SDK3? Looking to make a mic stand for singing and other related voice needs.

fiery yoke
#

Will be: Yes. When? Who knows.

#

Could be days. Could be weeks. Could be months.

proven vessel
#

oof. Ok, Thanks.

bleak widget
#

Anyone know why this just turns my fog off?

floral dove
#

@proven vessel we're working on a major audio system override right now to make all sorts of new things possible in Udon. I'm hopeful that it will be weeks and not months, but it's a complex system so we won't have a solid timeline until it's just about ready.

proven vessel
#

I appreciate all you do! Thank you for the update.

fiery yoke
#

whos Hank?

proven vessel
#

Voice to text always killing my grove.

fiery yoke
#

lol

bleak widget
#

Update on the fog issue. Through a bunch of testing, I found that it will turn off if you try to change the fog mode to anything other than what the world started with

dark blade
#

i need a script for toggling mirrors. i tried youtube but they dont seem to work even in play mode

bleak widget
floral dove
#

the video above from Vowgan will guide you through making a toggle in UdonSharp, the documentation above is for using the Udon Graph. You're welcome to use either one, but you'll want to go to the UdonSharp discord for any further questions if you go that route.

#

@dark blade let me know if the Mirror System in the ExampleUdonScene works for you once you have Build & Test set up correctly.

floral dove
#

hey @dark blade it'd be cool if you followed-up here with what worked or didn't work for you after asking questions 😉

agile oasis
#

does anyone know how to make like edable foods and drinks for worlds? been trying to look for tutorials but i cant find one and im confused on how exactly people make them for their worlds ( like cookies that break when you use them, or drinks that can be used and refilled ect)

scarlet lake
#

How would I go about having a proximity trigger? They enter an area to turn on the mirror, and when they leave that area, turn off the mirror

#

Man, I love clicking "Force Non-VR" in the SDK then clicking Build & Test -- AND IT LAUNCHES VRCHAT IN VR

#

updated my SDK hoping it would fix that and NOPE still does it

scarlet lake
#

Actually lmao apparently I uninstalled my backup vrchat thigny and forgot to re-direct it

#

How would I go about having a proximity trigger? They enter an area to turn on the mirror, and when they leave that area, turn off the mirror
However, im still stumped on this

#

also having problems with QvPen's (https://booth.pm/en/items/1555789)

VRChatのワールド用のペンセットです。 消しゴム機能も付いています。 完璧に同期が取れるというわけではなく、速めにペンを運ぶと同期が取れにくくなります。その場合はゆっくり書くなどしてください。 Presentation RoomなどのようなLate Joinerへの同期は取れません。 同じインスタンスに長時間(2時間程度)いると書いた文字が他のプレーヤーに同期されにくくなります。 その場合はインスタンスに入り直すことで解消できます。 ※ExMenu用最小限アセット ExMenu(拡張メニュー) ( https://chiugame.booth....

floral dove
#

@scarlet lake the nodes for detecting players are included in the next update. There are some funky workarounds on the forum but they're a bit complex.

scarlet lake
floral dove
#

You'll need to ask the creator of the pens for support on those.

scarlet lake
#

Was hoping someone in here using them would know :x

floral dove
#

@agile oasis you could start by learning the basics of how Udon works, and make a simple object toggle. You can find the getting started docs here: https://docs.vrchat.com/docs/getting-started-with-udon
The example scene that comes with the SDK shows you how to turn objects on and off, which is the first step in making edible items.

#

@scarlet lake those are just warnings. Only errors (in red) will stop something from functioning altogether

scarlet lake
#

but don't function as pens lol

floral dove
#

@scarlet lake ok, looks like when any rigidbody enters the collider that graph is on, it will turn off the mirror and AvatarReplacement objects , and turn on the AvatarMirror object. What happens instead?

scarlet lake
#

Nothing happens when I enter

#

Yeah, turns off the mirror that's by the couch (incase its on so you don't have 2 mirrors on), turn off my wall that says "mirror" and turn on the other mirror

bleak widget
#

I have been trying to create udon pens from scratch but gave up for the moment

scarlet lake
#

@floral dove is it as complicated as my time changing button? lmao

#

first half is toggling some game objects off/on and the other half is changing skybox material

#

omfg my pen issue was because I didn't compile the scripts after importing everything

floral dove
#

Ah - yeah, that's an Udon Sharp thing.

#

BTW @bleak widget - we updated some of the Udon docs today. I remember you wishing there was more documentation: https://docs.vrchat.com/docs/what-is-udon
You can let us know if there's anything you want to know more about. We'll have pages on Sync and Collisions as soon as those new features are out.

bleak widget
#

Ah thank you! I will scan through those in the morning

vagrant coral
#

How do i check if a transform is null with udon graph?

fiery yoke
#

Usually you would do a object.ReferenceEquals which is equivalent to the "==" operator (in most cases)

#

However a Transform should only be null for the protected objects.

#

And in that sense I dont think you could ever get to that point without hitting a null before. Not sure on that tho

vagrant coral
#

i see

#

I dont think i have full understanding of the "null" in itself 😄

fiery yoke
#

Objects in Object-oriented languages are represented as "references". An object is essentially just allocated space in memory. The program then points to that space in memory. Thats the reference. If an object points to null (which is a special memory address) it essentially means that there is no object to point to. But it still needs to point somewhere. And that is null.

#

It is essentially representing the absence of an object.

dark blade
#

@floral dove the mirror works perfectly but i just dont know how to do toggling. the tutorials dont work and i follow it by the letter

dark blade
#

how do i get the pens to work?

floral dove
#

Are you saying the mirror toggle in the UdonExampleScene doesn't work for you?

dark blade
#

i saw something about compiling? how do i do that? and i can find the example scene

floral dove
#

It's in the VRChat Examples folder.

dark blade
#

which folder after the example folder

floral dove
#

The UdonExampleScene

dark blade
#

so im in the examples folder but i dont see the udon one. should i reimport the latest sdk

floral dove
#

Go through that one and the 'Using Build and Test' page/video linked after and you'll be in a good spot to explore the built-in examples.

dark blade
#

well thats the problem. i think im missing those examples

#

now how do i compile scripts

#

nvm found it but now im getting a compile script error

floral dove
#

Start with a fresh project and import the latest public SDK.

dark blade
#

can i export my previous project or does it have to be from scratch

floral dove
#

If you're talking about compiling UdonSharp scripts, you'll need to go to the UdonSharp Discord for help. But I highly recommend you learn the basics before jumping to advanced uses.

dark blade
#

well whats the errors for

floral dove
dark blade
#

what visual studio do you recommend

floral dove
#

VS Community

dark blade
#

which year

floral dove
#

But you don't need that to use Udon, we have the graph

#

2019 is the latest I think

dark blade
#

ok. i need that for the audio toggling system

floral dove
#

You can make an audio toggle system in the graph, no problem.

dark blade
#

now i cant enter play mode because i need to fix all the compile errors and i cant find them

floral dove
#

There should be no errors in a new project with just the Udon SDK imported. I can't help if you won't listen 😓

dark blade
#

i imported my previous project and i think its the scene that has the errors. how do i fix that. i really dont want to start over

floral dove
#

To fix errors, you must learn what they mean.

dark blade
#

thx

lyric tiger
#

is there a way to detect if an Interactable object is hovered and not clicked?
Something like OnInteractEnter() OnInteractLeave() instead of Interact

floral dove
#

@lyric tiger not built-in, you'd need to do it yourself with Raycasting.

lyric tiger
#

Ok, ty

fiery yoke
#

Raycasting is exactly how VRChats Interact works. its based on proximity and the angle between where your hand is pointing vs your hand to the object.

distant abyss
#

Does anyone have an object physics script so I can throw items with gravity?

floral dove
#

@distant abyss the PickupSphere object in the UdonExampleScene does this - no need for a special script.

distant abyss
#

tysm!

distant abyss
#

my items keep falling through the world forever, it was working not long ago but now when I play the scene they just fall forever. Any help?

floral dove
#

make sure you've got some sort of floor with a mesh collider, and non-trigger colliders on your objects

edgy moss
#

Hey y'all ^__^ question: I want to have a key that, when brought to the keyhole, triggers an animation. any pointers on what exactly that's called, or maybe a youtube tutorial i can watch?

floral dove
edgy moss
#

thanks!

distant abyss
#

@floral dove Sorry for the late response, but I have my items on an item with a box collider and none of them are set as triggers. Will that still work or does it have to be a mesh?

#

nvm! making it a convex seemed to make it work for me!

sour lynx
#

Does anyone know if i can get Tilt Brush reactive brushes working in VR chat..reacting to audio. I tried using SDk3, but inside VRChat the brush did not react to the audio coming from the audio source. In Unity it works fine.

floral dove
#

@sour lynx to make something run in VRChat, you need to port it to the Udon Graph or UdonSharp.
Here's some info about Udon if you want to learn more: https://docs.vrchat.com/docs/what-is-udon

#

Udon can access Audio Spectrum data, it may be possible to provide the info that a Tilt Brush shader needs but I've never used their SDK so I can't say for sure.

sour lynx
#

@floral dove thats really interesting, so perhaps re-writting the scripts that tilt brush uses for the reactivity in UDON.. I haven't used it either so i dont know if it's possible.

floral dove
#

It would be awesome if it worked! I love Tiltbrush.

sour lynx
#

Yeah im making a VR gallery called " "Moksha VR 2020" it got accepted to Burning Man Kindlin. I Have a bunch of tilt brush pieces inside which would be awesome if they reacted to music.

frozen matrix
#

Does anyone know how to make button to be global

autumn scroll
#

Does anyone know of a guide for Udon which explains the correct way of setting up voice dampening/roll-off?

floral dove
#

@frozen matrix check out the ButtonSyncMaster example that comes with the SDK in UdonExampleScene

frozen matrix
#

Well what is name of it there is like lot of different buttons for different use? momo

floral dove
#

@frozen matrix oops, forgot we renamed it to UIButton Owner.

frozen matrix
#

RIP

#

Well do you have any recommendations if there is like video explains it Momo

floral dove
#

@frozen matrix the Readme.pdf explains it along with all the other examples

distant abyss
#

Does anyone know how to add a custom sitting animation on a chair? I tried searching it up but couldn't find anything.

solid cairn
#

I have a collider that works fine unless there are multiple people in the world, then it just stops detecting trigger enter/exit events. There are multiple of them but only the one the player spawns in originally just stops detecting collisions, only for the master.

#

Is this a known issue, and is there some kind of workaround for it?

solid cairn
#

eh, this method of player detection is gonna be broken soon anyway, I'll probably revisit it if the issue persists after proper player collision is implemented.

solid cairn
#

also, anyone know how to scroll the debug log? a million scrollbars on that window but nothing I've tried so far works...

floral dove
#

I think you'll have better luck looking through the file of the log itself

#

You can fin it in something like C:\Users\YourName\AppData\LocalLow\VRChat\VRChat

solid cairn
#

I was afraid that was the answer. I usually do that, but testing networking stuff with multiple clients it gets a little more difficult keeping track of which log is which.
Ah well.

floral dove
#

Agreed. I'll let you know if I figure out how to do it. I made it work randomly last week, but every new line logged scrolled it back to the bottom so it wound up being more frustrating than just checking the logs.

fiery yoke
#

@solid cairn You have to open the quick menu to scroll the console. Because thats how UI Focus works apperantly.

#

And yeah there is no way to stop it jumping to new log entries which is very annoying.

inner steeple
#

Is there any way to generate a random int on start without it generating 0 every time?

fiery yoke
#

Then just round to nearest int

#

Or Floor/Ceil whatever you need

inner steeple
#

As, sweet. Thanks 😄

shy plaza
#

I'm looking for a way to emit a single particle on interaction. Are there any good examples or tutorials for this?

fiery yoke
#

Not sure if it is exposed tho

shy plaza
#

Ah, I see. Thanks a lot

visual crow
#

So is the Build and Test feature broken in SDK 3.0? For some reason it always loads up and then kicks me right back to my default vrChat world?

solid cairn
#

@fiery yoke thanks! Jumping around is fine for now, mostly just needed to check a few differences between the clients on load.

floral dove
visual crow
#

yeah it's exactly as shown which is why I'm baffled

#

I actually had this problem last night, so I created a new test map. Threw down a plane, Game Object, added Component Vrc_Scene_Descriptor set spawn to 1, ran the collision and layer dialogs, it loads up my world for about 5 seconds then kicks me back to my home world, my Mine world list appears then disappears before I can see anything and that's it

#

So it appears to be "somewhat" working, but I made sure to use this test map so I could make sure I didn't have any errors regarding assets/scripts

#

I'm going to try the build/publish route just to see what happens. It's a shame testing it doesn't work for me.

floral dove
#

Take a look at your logs to see if there's any clues as to what's happening for you. For a know-good world, try building the UdonExampleScene world.

visual crow
#

Thank you, I just uploaded it and found it under Mine, now it loads me into it in VrChat but kicks me right back out. I'll check the logs and also use the example.

#

as far as console errors this is all I saw really. Just about to check the logs

floral dove
#

Those are warnings, nothing to worry about. Your logs should tell you what's happening. I wouldn't expect it to work Published if it doesn't work Built.

bleak widget
#

I have had that issue where it kicks you back to the home world but still launches the game. It was because I wasn't using the EXACT version of unity that is needed with SDK3

visual crow
#

hmmm maybe that's it

#

I'm using Unity 2018.4.20f1 (64-bit)

#

I might of not realized there was another version I needed (was working on avatars recently)

#

nope that appears to be correct from what I just saw

#

I'm not quite sure what I should be looking for in the logs either. I'm using Entering World under the find function for now to see what kicks up when joining my world

#

The only thing I really could see is when joining a world I occasionally saw this

2020.08.24 11:08:10 Log - [VRCFlowManagerVRC] Spawning players

2020.08.24 11:08:10 Log - [PlayerManager] mPlayerInstigatorIdDictionary[1] = VRCPlayer(Clone)

2020.08.24 11:08:10 Log - Voice DeliveryMode: UnreliableUnsequenced

2020.08.24 11:08:10 Log - [SpawnManager] Not aligning tracking to Spawn because false == !False || (!True && (False || False))

#

I'm going to test the example scene now

#

Okay the example Scene produced a considerable amount of errors compared to my almost identical Scene

bleak widget
#

Those are not errors, just warnings. Errors will have a red icon on the left instead of a yellow

visual crow
#

Ahh my mistake

#

still 45 of those compared to maybe 7 previously

fiery yoke
#

That is still normal

visual crow
#

strange

#

I'm at a loss. I am using ProBuilder, PolyBrush and ProGrids other than that everything else is pretty straight forward

bleak widget
#

You should be able to use the build and test on the example scene to make sure the you setup everything correctly

visual crow
#

Yeah, same issue. It loads up then instantly kicks me back to home

fiery yoke
#

Thats because the SceneBuilder fails to build the scene. So it cant properly load the scene

visual crow
#

Error - [VRCFlowManagerVRC] Something went wrong finalizing the scene:
System.NullReferenceException: Object reference not set to an instance of an object.

#

^^

bleak widget
#

Yeah, that might do it

fiery yoke
#

Hmm not sure where or why that would happen

#

Ive only seen it when you dont have a spawn object

#

but the default scene should have that+

visual crow
#

it does

bleak widget
#

If you have two scenes in a project, can errors from one cause another to fail to build?

visual crow
#

I'll restart and open the example scene to make sure it's not messing it up

#

lol I felt like I made so much progress last night, once I got through setting it up and getting use to using unity (been mapping in HL and Source for about 21 years) so I expected some learning curve but Unity is pretty pleasant to work in I have to say.

bleak widget
#

If you still have issues building, try a fresh project with the SDK and try the example scene again

visual crow
#

I'm doing that now

#

Pretty much all I'm going to do on this one is Import the SDK> ProBuilder> PolyBrush > Open Scene > Build and Test (maybe it was ProGrids? since it was in preview?)

#

ooooooooo I must of used the wrong example scene. I wasn't using the Udon one above that was my mistake 😆 lack of coffee

#

lets try it now

bleak widget
#

That would explain a lot of the obsolete warnings

visual crow
#

yes, I wonder if I'm not correctly setting up my Scene Descriptor

bleak widget
#

This is a great place to get started with the sdk

visual crow
#

Yeah, I'm going to take a look at the Udon example to see what their scene descriptor looks like, I just have to figure out what they labeled it

bleak widget
#

And this one talks about everything you need to create a working world

https://docs.vrchat.com/docs/creating-your-first-world

visual crow
#

I had spawn order set to first instead of random, so I'm testing that otherwise it's the same.

#

nope still kicked me ugh...

bleak widget
#

Are you still getting that same error in your logs?

floral dove
#

@visual crow I don't think ProGrids, ProBuilder or PolyBrush are whitelisted

visual crow
#

checking now, the only thing I changed was that "first" to "random"

#

really?

floral dove
#

But I'd only expect that to mean that their components get stripped from the world

visual crow
#

Hmm so do people generally not use them in 3.0?

floral dove
#

Does ProBuilder have a way to bake it's objects into regular Meshes?

visual crow
#

I'm honestly not quite sure, I just started using Unity yesterday so I'm still new to these tools.

#

well, I should say making worlds

#

I have made a couple of avatars but I never used these packages

#

No Exception
{{"error":{{"message":""World not found"","status_code":404}}}}

#

Error - [RoomManager] World Metadata failed to download for world local:b9df73d9128097dbeffa58c98c5047b41bd71418192c9b8be2f7b1d6b3ba9ff0

#

two of the errors most recently

floral dove
#

Yeah, you generally need to stick to Vanilla Unity.

visual crow
#

Okay so I assume I could go back to 2.0 if I did want to continue using those packages? Because it really streamlined the process for me

floral dove
#

Any scripts not whitelisted will be removed from your world. Did the UdonExampleScene Build for you?

visual crow
#

it did

floral dove
#

Hm - I'd be surprised if they were allowed in SDK2 but blocked in SDK3.

visual crow
#

Every tutorial I've seen uses them so that's why I was shocked it wasn't working in SDK3

#

the only one hidden in Preview was ProGrids

#

Coming from other editors it really makes mapping way easier. Hell just figuring out how to adjust snap to grid was kind of a pain till I used ProGrids

#

(adjusting the incremental values of snapping I mean)

floral dove
#

These tutorials were all VRChat SDK2 tutorials?

visual crow
#

Yes

#

I might of even seen one SDK3 but I'd have to double check

#

Way less common to find right now

floral dove
#

Hm, the whitelists between the two aren't that different. I'll have to try it out to confirm.

visual crow
#

Yeah the 3.0 tutorial I just watched DID NOT use the Packages

#

so maybe it an issue

floral dove
#

Will you post a link to your published world? I can take a look later today

visual crow
#

sure you want the basic example world that I was working on ? 1 plane, 1 game object (VRC_Scene_Descriptor)

#

It's locked as private? Do I have to re-publish to enable it as public?

floral dove
#

If it's not allowing you to join it, I'm curious what's going on. You can share the link to a private world, it just doesn't show up in searches, etc.

visual crow
#

so I just copied and pasted I hope that's okay and it works

floral dove
#

Yep, that should work.

visual crow
#

cool, yeah let me know if you have any clue what's going on. I'm going to start a new project without loading up those packages and see if I run into the same problem.

toxic tartan
#

Hi I have a little problem with my avatar. when I have, in unity, the SDK it does not offer me to import it. Help please

visual crow
#

So I re-attempted without adding any of the other packages and now it won't even Build and Test I just get these warnings

floral dove
#

@visual crow - those are Warnings, not Errors, errors are in red. What happens when you try to Build & Test?

#

Warnings don't block Build & Test

toxic tartan
#

someone can help me ?

floral dove
toxic tartan
#

ok sorry I not realy now this server

visual crow
#

Ok so originally I had those warnings, I forgot to change my spawns from 0 to 1. Once I did it built and tested it. Then it just loaded up and kicked me out like before.

#

@floral dove I forgot to target my Spawn Entity

floral dove
#

@visual crow - I experienced the same thing when visiting your world. Your World Descriptor had 0 spawns set, not sure if that's how it was uploaded or a byproduct of some ProBuilder stuff.

#

so no spawns were set in your world?

visual crow
#

Lol this is why I need like 3 more cups of coffee. My apologies lol

#

even my other world from last night works now using those packages. Ugh. I am sorry to have bothered you. What a simple mistake to drive me so crazy.

fiery yoke
#

@visual crow So I was right after all

visual crow
#

yep

fiery yoke
#

The SDK really should default to itself (The Object that the Scene Descriptor is on)

#

Seems like an oversight to me

#

I would report that as an SDK bug on the Canny, but I cant login with my Gmail anymore, because of the recent Attack so I wont.

visual crow
#

It was the one thing I just overlooked when watching the tutorials. It didn't occur to me to have to set it.

#

It was really my oversight in this situation

fiery yoke
#

I recommend just using the VRCWorld prefab

twin pollen
#

So I am extremely interested in Udon worlds. Do you suggest following the docs (as do they offer enough info), or should I follow a set of youtube tutorals (scared of outdadted/unneeded info).

visual crow
#

I mean it works now, I just spawn completely away from my spawn point lol, so hopefully with some positional adjusting I should be okay now.

#

I would suggest @twin pollen following the docs and getting your most basic map test worked out then explore youtube tutorials after that

#

The easiest youtube tutorial to make sure you are not being dumb like me is https://youtu.be/-ema-hdNiB8 this should get you to make sure all your basic settings are configured.

#

really to the point simple

#

Then I would move on to others if you want to use some tools to make it easier or do more advanced geometry world building

#

adding unity assets/textures

#

Some 2.0 video tutorials will have useful information that carries over, but it should help to give you a good idea of the basic controls/keyboard shortcuts if for some reason you learn better that way instead of referring back to the documentation

#

On that note, I'm going to fix some more coffee and exit stage right. Thanks again everyone, and also I'm sorry!

twin pollen
#

I understand SDK

#

I do AV3 stuffs, so I would imagine it is dragndrop up until creating a simple world itself

bleak widget
#

Importing the sdk is the same for worlds as it is avatars. There are just a few more things you have to add to get a working world once the SDK is setup

Here is a link to setting up a basic world
https://docs.vrchat.com/docs/creating-your-first-world

visual crow
#

Playing with the world Geometry is pretty straight forward for the most part I've noticed. So once you get your feet wet and don't make a simple mistake like me you should be off to a good start after checking that link he posted out ^^

#

The only other advice I could really give that might be useful is be careful when downloading assets off the asset store. When you import the packages check to see if any scripts are included because it more than likely will kick off errors if you leave the scripts in

visual crow
#

Is there a way to change the render distance of geometry in the 3d viewport? I'm trying to select faces on a small cylinder but the closer I get it disappears?

fiery yoke
#

It is dependant on the size of the object youre focused on

visual crow
#

yeah the size of this is very small

fiery yoke
#

Make a cube, scale it to be reaaaaaaaaaly small, then press F when having it selected

#

then you can move around the scene

visual crow
#

You are a saint

#

I clicked F and it zoomed in perfectly

fiery yoke
#

Well thats a little much, but thanks

visual crow
#

I have a 6 sided cylinder that I could only select 2 sides of the top face from a distance

#

🙂

#

Am I being blind or is there a list of shortcuts in the documentation on the website?

fiery yoke
#

Shortcuts for what?

visual crow
#

Keyboard shortcuts, Like F to focus (I assume) Ctrl, shift etc

fiery yoke
visual crow
#

extremely helpful

#

UGH I'm mcloving you

fiery yoke
#

I mean google is your friend

visual crow
#

I'm kind of shocked there isn't a centralized wiki for information regarding this specifically for VrChat.

#

It seems that there is a lot of information out there, though a lot of it is scattered and de-centralized for specific uses and applications

floral dove
visual crow
#

Oh yes I understand. That was very helpful. I'm just shocked there isn't a resource that helps bridge VrChat Specific knowledge with Unity Knowledge (I never had a reason too work with unity without my interest in VrChat)

#

I do enjoy the challenge though.

bleak widget
#

Is there a keyboard shortcut for the graph comments?

floral dove
#

no, the right-click context menu is the quickest way to make one at the moment.

#

I'd be open to making one, though. Any suggestions?

bleak widget
#

CTRL+K+C is the comment shortcut in Visual Studio. Maybe that or some variation of it?

floral dove
#

yeah, Ctrl+k is decent if that's open. Then maybe Ctrl+g for group.

bleak widget
#

Yeah, that would be really nice. Is there a way to change the default size of the comments as well? By default they are only big enough to show like a 2-3 words at a time

floral dove
#

not at the moment, no

bleak widget
#

That might be a nice addition. Very low priority though

#

Or have it dynamically size based on amount of text

shy cave
#

How do I add jumping to my world?

visual crow
#

Alright quite possibly another dumb question, is there a way to change render distance for Point Lights? they seem to fade out when I'm a certain distance?

#

2 in the back left and right

shy cave
#

I am trying to follow this tutorial but it looks to be too outdated because I can't get even the first node to appear. All I get when I try to add the player api is this menu.

#

I am sure it's probably just one of these options to create the same node as in the video but I don't even know where to look.

floral dove
#

@shy cave - the UdonExampleWorld that comes with the SDK has jumping enabled, check it out!

#

the Readme.pdf that comes with it explains how to modify jump too

shy cave
#

Okay, thank you!

edgy moss
floral dove
#

@edgy moss - does the effect have a custom script on it? Look like it's got one in the package called LightningBoltScript. You can't use custom scripts in VRChat, that's the whole reason we made Udon. You can try converting it to Udon but that's not necessarily a beginner's project.

edgy moss
#

thanks so much 🙂 I have a buddy really good at scripting, I'll have him take a look. Thanks!!

worldly forge
#

Hello i just downloaded udon sdk and unity is screaming at me saying i dont have "udonSharp"

#

so i am pretty confused as to where i could find it

#

(i used some prefabs for a kart that might be too old ) does udon sharp still exist ?

solar steppe
#

Anyone got a good example for a volume slider?

restive dust
#

@worldly forge UdonSharp and Udon SDK are two different things. Udon SDK is actually SDK3, that allows you to create logic in your worlds using Udon. It supports creation of Udon graphs. UdonSharp is a plugin that lets you write C# code for Udon. It is useful if you wish to write C# code for Udon, instead of creating Udon graphs. UdonSharp is meant to work along side SDK3.
SDK3 can be downloaded from the VRChat website. UdonSharp can be found and downloaded from GitHub through a quick google search.

#

You mentioned a prefab. Could it be possible that the prefab contains some scripts that are meant to be compiled by UdonSharp? If so, then you need both SDK3 and UdonSharp.

worldly forge
#

thanks a lot for the explanations

unreal musk
#

what is udon?

restive dust
#

Here's an explanation of it: https://docs.vrchat.com/docs/what-is-udon

unreal musk
#

oh okay. thanks for the info. I actually thought you mean udon the noodles 😅

shy cave
#

I was trying to download a prefab for my world but upon adding it I kept getting these errors. How can I fix this issue?

floral dove
#

@shy cave - a good place to start when you have errors is to search for them. Google 'UdonSharp' to find the package you need.

shy cave
#

Oh, I thought the SDK would already have the package included.

floral dove
#

I would hope that the site that provided you the prefab would have information about needing UdonSharp.

#

No, UdonSharp is not part of the SDK, it's an add-on made by someone else.

shy cave
#

Oh, okay. Thank you*!*

solar wolf
#

Hello everyone vrcHandWave , so i'm trying to make my first World map and a try to make a pick able object but when i or someone else move it people other than the one who move it can't see it move. how can i make it global vrcQuestion

zealous mason
#

@solar wolf add an udon behavior component to it and check the sync position box

solar wolf
#

i dont fond it TwT

zealous mason
#

@solar wolf

solar wolf
#

Ooooh! i feel stupid xD

zealous mason
#

No worries =)

solar wolf
#

i did it but it still dont sync ???

floral dove
#

Are you using Build and Test @solar wolf ?

solar wolf
#

no i ask a friend to come in vrc to try

solar wolf
#

never mind for some reason the check box got reset to "not check" but now it work

floral dove
#

Ok, glad you fixed it. FYI I recommend Build and Test to try out your synced objects and variables, much easier than asking a friend each time.

bleak widget
#

If I have a position synced game object and a graph that effects the transform of the game object as well, what takes priority of the position?

tawny island
#

I want to make a lightswitch which will turn all lights off/on which are in the room.
I already tried my best with U# and it didnt worked like I planned.
Things I have to consider are?

  1. Switching the material to the turned-off material?
  2. turning the light off?
  3. changing the refelction probe?

I tried it with animation but failed ... any ideas?
I think Im thinking to complicated here right?

visual crow
#

Is there a downside in Unity to duplicating walls as opposed to creating new objects while world building?

rugged garnet
#

Does anyone know how to get text to show up in the vrchat camera?

still sundial
#

@tawny island there are some more options. You can maybe replace the mesh renderer by enabling one and disabling the other. Or just disable/enable entire objects. Or maybe change the color value on the emissive property in the material to black

tawny island
#

The main problem is that I need to adress multiple lights in the room and because the amount of lights changes in every room I cant hardcode it

bleak widget
#

@tawny island Maybe you could have an array of your light objects then iterate through each one?

tawny island
still sundial
#

use layers?

tawny island
#

layers?

tacit pasture
#

anyone have documentation on receiving player data? e.g. when enter trigger take the player data (username) to be displayed

fickle stirrup
tacit pasture
#

awesome thankyou

floral dove
#

@tacit pasture official support for this in Udon is coming in the next release.

tacit pasture
#

oh man, thanks a bunch, cant wait :)

scarlet lake
#

How long would it potentially take to learn udon enough to make a world?

flint urchin
#

Difficult to answer that one @scarlet lake

All depends on your capability to learn a coding language.

But basic stuff is pretty easy.

scarlet lake
#

I already know a bit of C#, does that help?

flint urchin
#

That does help yeah, just got to be aware of Udon limitations. Things that work in C# might not work in Udon because you don’t have access to the same methods/properties

scarlet lake
#

Right. So is udon a language that you learn from scratch like C# or is it something that's easy to understand when you already know the basics of code?

floral dove
#
scarlet lake
#

Are there other video sources that go into more detail than the 3 videos on the youtube channel?

floral dove
#

That's all that we've got for the official videos, I'm working on more right now. After those videos, I recommend you go through the Readme.pdf, which walks through every graph in the UdonExampleScene

scarlet lake
#

Thanks, I will.

#

I wanna learn udon so I can enter the contest ^^

floral dove
#

Awesome!

#

We've got a couple features coming in about 2 weeks that will be fun for spooky worlds - haptic events, player collisions, video players

scarlet lake
#

Is udon about choosing whether to use the graph editor or U#, or do you need to know both?

#

Because I don't really understand the graph editor too much and U# feels more close to home.

#

Since I use C#

edgy moss
#

is vrchat/udon compatible with the unity Director Timeline?

flint urchin
#

@scarlet lake U# isn’t a official tool from VRC, it’s something Merlin made. Other than that, you’re free to choose what to use. Do keep in mind that support for U# is only given in that discord.

scarlet lake
#

Alright, thanks.

scarlet lake
#

Is it recommended to focus more on the graph editor?

flint urchin
#

That's up to you. Graph will have official support. While U# will only be updated after the graph

scarlet lake
#

I just have trouble understanding the tabs in the graph editor. What's the name of the discord that supports U#?

flint urchin
#

Link is at the bottom of the GitHub page

scarlet lake
#

Cool, thanks.

scarlet lake
#

How do I make thrown objects bounce

scarlet lake
#

Also, how do make objects not have gravity, so they can't be thrown, Like they can float in mid-air

zealous mason
#

In the rigid body component is a check box for 'use gravity', turn that off. @scarlet lake

zealous mason
scarlet lake
#

In the rigid body component is a check box for 'use gravity', turn that off. @scarlet lake
@zealous mason I'm dumb, didn't think of that, thanks!

#

Also that works great, create the PhysicsMaterial, customize the settings, slap that puppy in the collider material, bam, done

#

One more thing, how would I go about making a button that cycles through game objects?
For like, music queuing

1 click
Plays song 1 (GameObject 1)
Second Click
Plays song 2 (GameObject 2)
Third Click
Plays song 3 (GameObject 3)
fourth click
Goes back to song 1

floral dove
#

@scarlet lake you can use the'remainder' node - it will take an increasing input number and roll it over

scarlet lake
#

remainder node?

#

Searched it, got nothing

floral dove
#

Do a full search with tab

#

I'm on mobile right now, don't remember its category

scarlet lake
#

Heck, i'm over my head with this one, time for googly

floral dove
#

You could always just increment an index and then set it to 0 if it's greater than or equal to the length of your song list

scarlet lake
#

No like, I have no idea what im doing with this, lmao im very virgin marry with udon

#

and scripting in general

floral dove
#

Ah, gotcha. Yeah, Google / Stack overflow may guide you towards a good pattern for this.
Basically, you create an array of audioClips, and an integer we call the 'index' that starts at -1. When someone clicks a button, you increase 'index' by one, then set the Audio source to use the AudioClip at 'index', which will be the first clip (0). This will work until index is bigger than your AudioClip array.

#

So to fix this, right after you increment the index by 1, you check if it's greater than or equal to the length of your array. If it is, then it's hit the limit and you want to set it to 0 before you try to use it.

#

But it you can find the int.remainder node, you can just feed it the index and the length of your array and it will output an index that is already rolled over for you so you don't have to mess with if(index >= array.length) index = 0

scarlet lake
#

I appreciate your help, I shall put the puzzles together

floral dove
#

Good luck! I'll check back in when im at my machine and can make an actual graph

bleak widget
#

Is there more documentation on how the different momentum transfer methods work on a VRC Pickup?

floral dove
#

Hm, it doesn't look like there is. I'll see if I can flesh it out a bit.

scarlet lake
#

Hey momo, update on that button thingy, friend helped me with it, found it easier to use Udon C#

#

New issue, can't seem to interact with my UI 😠

bleak widget
#

Thanks Momo, that would help a lot

scarlet lake
#

Like, I have a slider for world audio volume, in my world, and can't seem to be able to interact with it, in my test world

floral dove
#

make sure you've got a VRCUIShape component on your Canvas @scarlet lake. You can check the UdonExampleScene for an example under UdonVariableSync/Canvas

scarlet lake
floral dove
#

ah - I know it's a little counter-intuitive, but take your canvas off the 'UI' layer, 'default' should work.

scarlet lake
#

aight, i'll check up after compiling

floral dove
#

also - 'remainder' shows up for me when I do a full search, can you verify that you bailed before using tab-search? Want to make sure it's not somehow missing for you:

scarlet lake
#

We used Udon C# - it works how I want it ❤️ thanks though!

floral dove
#

glad you got it figured out 🙂

scarlet lake
floral dove
#

haha - yep, that's exactly what I described, just in UdonSharp

scarlet lake
#

Again, I take no credit, friendo nerd helped

#

Jesus, something so simple, the slider works now! Thank you very much ❤️

floral dove
#

a couple things you can bring back to your friend - this will break if you ever change the number of songs., and skips the first song in the list. Here's a fix and simplification:

public GameObject[] Songs;
public int currentSongIndex = -1;
public override void Interact()
{
    // increment index by one and roll it over
    currentSongIndex = (currentSongIndex + 1) % Songs.Length;
    foreach(GameObject x in Songs)
    {    
      x.SetActive(false);
    }
    Songs[currentSongIndex].SetActive(true);
}
#

that % does what the remainder node does, which is roll over the index by the number of songs so you don't have to check and roll it over yourself. Using Songs.Length instead of 3 means you can change the number of songs and it will all still work.

bleak widget
#

Ah yes. Modulus.

floral dove
bleak widget
#

Bruh, that is so cool. I will have to remember that one

scarlet lake
#

@floral dove Why is my slider reacting to A & D being pressed while on desktop lol

proper oar
#

btw momo since the song 0 is playing by default making it -1 replays the first song

scarlet lake
#

I can control the slider from anywhere in the world just by pressing A or D

fiery yoke
#

@bleak widget In C# % is in fact not Modulus, but Remainder

#

The difference is subtle, but its important (well only for negative numbers)

floral dove
#

ah @proper oar - yeah, then starting at 0 makes sense. I was writing this as if nothing was playing at first

bleak widget
#

Huh, that is news to me. Thanks for the info

floral dove
#

@bleak widget - I've updated the VRC_Pickup docs with info about Momentum Transfer: https://docs.vrchat.com/docs/vrc_pickup

This defines how the collision force will be added to the other object which was hit, using Rigidbody.AddForceAtPosition.
Note: the force will only be added if 'AllowCollisionTransfer' is on.

bleak widget
#

Ohhhhh, it is for collisions. I assumed it had to do with how it was thrown

floral dove
#

honestly, I thought that too until I looked at the source code 😛

bleak widget
#

Deceptive naming haha. Thanks for clueing us both in on that one

prisma juniper
#

Hello everyone, i'm kinda new to udon & i need some help w it, i'm trying to set the UI button to trigger door open\close animation on my map. I wrote simple code w animator.SetBool (using U# (i'm new w C# aswell)), attached it to my UI button but when i launch it in test world it doesn't work :\

proper oar
#

you dont need the target.Getbool

#

other wise it looks fine

prisma juniper
#

tried it without target.GetBool before - not working

floral dove
#

@prisma juniper - you need to make sure your Canvas is set up properly, like the canvases in the UdonExampleScene. Make sure you've got a VRCUIShape component on your Canvas, and that it's not on the UI layer.

prisma juniper
floral dove
#

yep, that looks right. First, add a Debug.Log to make sure that this method is running. If it is, you can debug the value of that bool to make sure you're getting it properly.

proper oar
#

don't you need to add the main camera as the event camera?

floral dove
#

@proper oar it's not necessary, though it doesn't hurt.

proper oar
#

aight

flint urchin
#

Only needed if you want to test it in the editor. Otherwise, VRChat will replace/add it for you anyway, as long as UIShape is on the canvas

icy gale
#

Is anybody writing Udon Assembly? That sounds way more enticing to me than a nodegraph.

fiery yoke
#

I was. And Im glad I dont anymore.

#

Well that was before label jump ahead was a thing

icy gale
#

lol

fiery yoke
#

But nowadays most people "code" in UdonSharp

#

which is a C# to UASM compiler the User "Merlin" wrote.

icy gale
#

oh cool!

fiery yoke
#

But yeah back then you couldnt even do a simple if-else, because you couldnt jump ahead. You could only jump back.

icy gale
#

oh god

fiery yoke
#

Well you could jump ahead, but only to fixed addresses, not to any labels

icy gale
#

i'll definitely be using udonsharp then

fiery yoke
#

They changed that at some point, but there isnt really a point to it, since the optimisation is so miniscule that it doesnt matter. And the compiler Merlin wrote is really really stable. There barely is any bugs or problems with it, and if there is then he usually fixes them in under a day or so. (Give or take)

prisma juniper
#

Hmm, still not working (looks like vrchat cant see a button inside the canvas (no white dot when targeting the button )) & yeah i can't test this button in Unity cuz i can't click it (through game mode), but almost the same script for GameObject toggle works perfectly in vrchat (but not in Unity :D)@floral dove

fiery yoke
#

@prisma juniper Make sure your Canvas isnt on the UI Layer, because VRChat is weird, and that layer makes it so you can only interact with the canvas, when the menu is open

prisma juniper
#

it's in "default" layer

fiery yoke
#

And the canvas has the VRC Ui Shape Script added?

prisma juniper
#

yup

#

vrchat can see the canvas but not the buttons

#

i think problem is inside the U# code but idk, same code for object toggle works fine

floral dove
#

@prisma juniper make sure you've got a graphic raycaster on that object. If you want to test in the Unity Editor, you can select the EventSystem while the scene is running and take a look at the debug info in the inspector

stark adder
#

Can i somehow get all the objects 1-15 from the Role list object ? Without me having to put all the 15 objects in unity into list

fiery yoke
#

GetComponentsInChildren of type Transform. However that will include the parent itself. And then getting the actual GameObjects or UdonBehaviours requires additional effort. Alternatively you can use a loop using Transform.childCount and Transform.GetChild(index)

stark adder
#

Using U# btw

#

hm

floral dove
#

Does U# do for each?

foreach(Transform child in transform)
{
}

fiery yoke
#

Yes

#

But not like that I think

#

Actually strike that, it works using enumerators. Which I have no idea how they function, or if they function in Udon(sharp)

stark adder
#

Perfect @fiery yoke got it to work 🙂

#

Works EXACTLY how i need

fiery yoke
#

Which one?

stark adder
#

.childCount

fiery yoke
#

@floral dove
Okay read up on it, and Im pretty sure it doesnt work, because currently it just turns foreach into for-loops.
It would only work with a "real" foreach, since those contain some compiler magic to make Enumerators work I guess. Gonna ask Merlin for confirmation

floral dove
#

Ok. You could just try it, too - seems like the most straight forward way to test.

fiery yoke
#

Yeah, but I like explanations as to why something does or doesnt work, so I can remember it more easily.
But in general I would agree. However I dont have a Unity Project with U# open right now...and I dont want to boot it right now, just to test that.

prisma juniper
#

@floral dove welp i tried, button is workin - U# script - nope, dunno why 😄

icy gale
#

???

#

okay bitshifts just do not work lol

fiery yoke
#

They do. But I guess not in the way youre using them

#

which is a little unconventional

icy gale
#

i printed 1 >> 4 and got 0

fiery yoke
#

Yeah I think thats just how right shifting 1 works

icy gale
#

or rather doesn't work

fiery yoke
icy gale
#

gah got my ends mixed up

fiery yoke
#

That has nothing to do with endians tho :P

icy gale
#

yeah you're right

fiery yoke
#

Its just a non-cyclic shift.

#

Not sure if that has to do with arithmetic shifting >> and logical shifting >>>

#

I think those are just for whether or not you want to preserve the signed bit

edgy moss
#

is vrchat/udon compatible with the unity Director Timeline?

#

i can't find an answer online

#

I'm just trying to figure out the best way to trigger animations in my environment and the director timeline is so simple compared to the nightmare that is the animation node thingy lol

floral dove
#

Yes, you can use the timeline. I believe we've blacklisted the ability to call arbitrary methods from the timeline for now but using them to trigger animations should work ok.

stark adder
#

What has smaller performance impact ? 15 objects being deactivated and 15 objects being activated or 15 objects changing Material ?

floral dove
#

there's one way to know for sure, @stark adder - try each one and measure your performance!

stark adder
#

Tried it 😄 but its very hard to see

stark adder
#

I get 320 FPS all the time

#

oh hm in unity

floral dove
#

if you're working with syncing some of the objects, it may be better just to change their material so you don't incur the overhead of different objects

stark adder
#

lets try that too

#

Not synced

#

just local

#

But i'd say that Material changing will be better anyway..

#

Because usually its its 15 OFF 15 ON but sometimes is 30 OFF 15 ON etc.. but it would be always 15 change

floral dove
#

Yeah, generally you have a small overhead from having more objects in your hierarchy. It's a TINY difference, but it's something.

hollow tapir
#

I have an issue with my world being the same size regardless of avatar height.

edgy moss
#

@floral dove okay cool thanks. Partly why I asked is because, when I Build and Test using the Animator, all my animations start automatically, but when I use the Timeline and go into VRC, everything is still. So I'm wondering if there's a puzzle piece I'm missing

distant abyss
#

Is there a way to change the lighting of a mirror so it doesn't use the directional light that the world uses?

errant pilot
#

Question: Is there a way to have a Udon Script be broadcasted globally to all players once one player triggers it? (Kinda like an interact back in SDK2 days and settings it to global instead of local)

floral dove
#

@errant pilot SendCustomNetworkEvent has a choice between Owner and All.

#

All does what you want here.

#

Check out the UdonExampleScene for examples.

hollow tapir
#

To clarify my head will be leveled with the doorknob regardless of using a tall or small avatar. How do I fix this?

floral dove
#

@manolo you want to change the height of things in the world based on Avatar height?

hollow tapir
#

No. The it's like the world is already scaling to my avatar. How do I stop that?

floral dove
#

That's not something built-in, is this a world you made yourself?

hollow tapir
#

I got it from a friend. The scale by default is 100. I also tried 10 but same issue.

floral dove
#

What scale? Ask your friend what they did, it must be a graph or script they added.

hollow tapir
#

I was just provided the model.

#

I mean the unity scale of all the objects.

floral dove
#

Oh, you mean on the model you're importing?

hollow tapir
#

Yep.

floral dove
#

What scripts are in the world?

hollow tapir
#

None so far. I was just excited to see the world in VR so I added collision and tested it.

#

I did the bare minimum just to see it. I added vrcworld prefab with a spawn point and that was it.

floral dove
#

Hm, I just don't understand what's going on then, sorry. There's nothing that auto-scales a world to your Avatar height.

hollow tapir
#

Weird. Thanks for helping though.

errant pilot
#

Thank you @floral dove . I am going to compile the code and hope it works and if it doesn't, ill need to rethink my code

errant pilot
#

Wait does instantiate work with that method? Or is it still local only?

floral dove
#

Instantiate does not currently work across the network

errant pilot
#

Damn i thought so. Hope yall can get that to work soon 🙂

floral dove
#

It's in the works but there's a few things ahead of it in importance. We recommend you use Object pools for now.

icy gale
#

I'm currently using Instantiate to place a 3d tile system, but for some reason tile rotations don't show up in VRChat even though translations do.

scarlet lake
#

How many tris/polys should a normal gameobject have?

#

I have a metal barrel with about 1k tris (500 polys), is that a fair amount?

errant pilot
#

That sounds pretty reasonable. As long as your not building for quest, tri's are not a HUGE issue. As long as your not going for 70k+ tri models placed everywhere

scarlet lake
#

Ok, thanks.

dark tiger
#

Is it possible to make other players be able to see instances of an object? I made a little gun that shoots instantiated balls, but only the one who shoots sees the balls

scarlet lake
#

So what I'm getting is that instance is referring to what is being effected and the value is referring to how it's being effected. Is that correct?

vernal phoenix
#

how do i get particles to show in the mirror?

stark adder
#

How can you catch when someone presses TAB with who pressed it ? U# Currently no idea how to do that

#

What event ? 🤔

restive dust
#

Have you tried

if (Input.GetKeyDown(KeyCode.Tab))
{
//do something
}

stark adder
#

I have not but i dont think it will work but i guess doesn't hurt trying it..

restive dust
#

Ok I just read your question again. I only answered one part of it. Someone else is gonna have to help you with the exact functions for getting player name.

errant pilot
#

@dark tiger Instantiate is local only for the time being. So use object pools instead

#

@vernal phoenix Make sure that your mirror is showing the proper layers. Dont know exactly what layer it is, but the default mirror does the trick on showing particles.

hearty linden
#

Hey all, trying to get a physics object to play sound on collision in udon. (bonus if I can get it to only play when object it hits is a specific object or set of objects) Is this a simple thing?

floral dove
#

Sure - you want OnCollisionEnter and AudioSource.Play

dark tiger
#

@errant pilot. thanks :)

hearty linden
#

@floral dove Oh yeah that was a simple thing 🙂 Thanks.

trail hazel
#

is it possible to get the worldspace view position of the avatar the local player is using

#

i can attempt to get the eye/head bones but sometimes the eye bones are unset and the head bone can have a large offset

fiery yoke
#

You cant get the "view position of the avatar". But you can get the camera position of the player. Which is the position of the TrackingData of the Head.

trail hazel
#

that'll do

#

thanks

pallid yarrow
#

I'm a bit new to world building and I'm wondering whether I should build the majority of my world in blender first? Or just try and use probuilder in Unity
I'll be using the Udon SDK

flint urchin
#

@pallid yarrow that would have to be a choice you make. Personally I prefer doing it in blender as that gives me more control

#

Not sure what you wrote there, but Blender gives you more control, while Probuilder does some for you.

#

Pros and cons for both.

#

But learning a good tool, even if it takes a little time is better

bleak widget
#

What goes into the instance side of the VrcpickupGetIsHeld node?

floral dove
#

the VRCPickup on which you want to call this method

#

btw - you can hover over ports to see their type

bleak widget
#

That is what I guessed. I was going to use the get component but there didn't seem to be a VRCPickup type node like there are for other data types. I had to look in the full search to find it

floral dove
#

it might just be named different from how you expect. FYI the easiest way to get a reference to a particular component is to drag and drop that component from the Inspector into the Graph. This creates a public component for that variable type that you can then wire up in the inspector.

bleak widget
#

Ohh that is a helpful little trick that I didn't know about before. I was going to have public variables but didn't want to have to tie in the components because I have the script across multiple objects

eager pasture
#

anyone here familar with toggles

#

for some reason only one of them works

#

i have a total of three

bleak widget
#

Are they all set up the same way?

eager pasture
#

yup

#

with different animations of course

#

and naming conventions

#

I dont know if its because i copy pasted the edit that works and modified that one

#

i ended up remaking both toggles instead and still nothing

#

or maybe...test avatars could be buggy with stuff

bleak widget
#

Oh are these toggles on an avatar?

eager pasture
#

yup

#

o heck lol

#

am i in the wrong channel

bleak widget
#

I think you may be asking in the wrong channel

#

Yup lol

#

Try the avatars-3-help or avatars-2 for help

eager pasture
#

yup there now, they need to rename this channel lol

stark adder
#

Any idea ? what the hell is this ?

errant pilot
#

Is it not allowing you to upload/test your world?

stark adder
#

Yes

scarlet lake
#

Oof.

stark adder
#

Well it launches

#

kind of

#

But everything is broken

floral dove
#

@stark adder - try closing Unity, deleting your Library folder, and opening your project back up

stark adder
#

hm launching again

#

Trying build

#

let's see

#

But look fine..

#

Build is taking more than 1 second

#

Its.. kind of fixed I can't press buttons now

#

Any idea why,.. ?

errant pilot
#

Buttons??? Like UI buttons or the actually game buttons

stark adder
#

Also i literally did nothing from last time i used it.. Yesterday it was working fine before i closed Unity.. Then i Opened it today and did Build&Test without any changes and it broke

errant pilot
#

Go ahead and reinsert the udon graph/script. If all else, delete the objects and rebuild them. Sometimes udon does a thing where it just breaks but rebuilding it usually works

stark adder
#

well wil ltry i guess

#

nop

#

Not working at all

#

Also in Unity it works just fine

errant pilot
stark adder
#

Yea

#

Magic

#

Like what

#

Also my other Udon script on different object (not interact) works just fine

errant pilot
#

I had it where my ui just magically vanished. Rebuilt everything and just worked... the code was the same

#

So in theory, it would work as well. Aparently im incorrect.

stark adder
#

This is some kind of super weird magic

errant pilot
#

Welcome to programming. The rabit hole just gets deeper!

stark adder
#

😄

errant pilot
#

The only other advice i got is to rebuild EVERYTHING. including the code

stark adder
#

Its just Udon..

#

I will try to rebuild one of the buttons.. to start

errant pilot
#

Yeah udon is still alpha. So weird stuff like this happens on occasion with udon

stark adder
#

Building again.. 😄

#

nope xD

#

Its just all Interact stuff

#

All other stuff i try works

#

Only Interact

errant pilot
#

Are you using U#?

stark adder
#

ye

errant pilot
#

Did ya quadra check that nothin is mispelled

stark adder
#

i have not changed the code since yesterday..

errant pilot
#

What if your cat walked on your keyboard overnight?

#

XD

#

Fair enough

#

Yeah your best guess is mine at this point then

stark adder
#

#MagicOfUdon

shy cave
#

I created a prop spawner menu but even though the prop prefabs are set as global and everyone can see them, the props spawned through the menu can only be seen by the one who spawns it.

errant pilot
#

@shy cave Are you using Instantiate?

shy cave
#

Good question. Give me a sec.

errant pilot
#

If you are, instantiate is local only for the time being

shy cave
#

Yes, yes I am. Is that a problem?

errant pilot
#

Yes. You cant globally instantiate an object... for now

shy cave
#

...

#

Oh.

#

Well what can I do instead?

errant pilot
#

Use an object pool instead.

stark adder
#
public override void Interact()
    {
        var transform = roleList.transform.GetComponentInChildren<Transform>();
        for (int i = 0; i < transform.childCount; i++)
        {
            if (i < matAllObjects.Length)
            {
                var o = transform.GetChild(i).gameObject;
                o.SetActive(true);
                o.GetComponent<MeshRenderer>().material = matAllObjects[i];
            }
            else
            {
                transform.GetChild(i).gameObject.SetActive(false);
            }
        }
        roleList.SetActive(true);
        backButton.SetActive(true);
        backButton.GetComponent<MeshRenderer>().material = transform.GetComponent<MeshRenderer>().material;
        mainMenu.SetActive(false);
    }
shy cave
#

What is an object pool?

errant pilot
#

I have never used one so i have no idea.

prisma juniper
#

@floral dove well i fixed the animator setBool problem, but here's another 1, UI works perfectly in unity but when i launch test world i can't press a single button, how to fix it? :\

icy gale
#

I'm a little new to Unity, how would I go about adding motion activated lights?

errant pilot
#

You can remove Public Override

floral dove
#

hey @stark adder - this room is for asking questions, please pull back a little bit from using it as your dev blog.

icy gale
#

is there a way to prevent players from casting shadows but still have them lit by realtime lights?

errant pilot
#

There is an option for shadows in your lighting window @icy gale

drowsy tundra
#

Is is possible to turn VRC_pickup on and off by say, hitting a button in world?

icy gale
#

i want realtime lights to cast world shadows but not player shadows

errant pilot
#

Ooohhhhh.

#

I dont think you can

icy gale
#

maybe i can mess with light probes

floral dove
#

@drowsy tundra - you could enable/disable their colliders

scarlet lake
#

Is changing the environment in a vrc udon map the same as in 2.0? (Teleport + Destroy)

cinder storm
#

Does OnTriggerExit/OnCollisionExit not fire if a player is holding the object that exited?

tardy dragon
#

can you change player orientation to match world normals? Would it need to be basically a vehicle?

jaunty schooner
#

How does the maze world allow taggers to move faster than those they are chasing?

stark adder
#

Can i make parent move same as child in world ? I am moving the child and i want parent to move same as the child i am moving

hearty linden
#

does the ToggleGameObject udon script in latest sdk work locally or globally? wanting to make sure my mirror toggle is local.

errant pilot
#

Its local until you tell it to be global

hearty linden
#

👍 Thanks @errant pilot How would I make it global if I needed?

errant pilot
#

SendCustomNetworkEvent

#

And you can set it as all or owner

hearty linden
#

Thanks!

floral dove
#

@jaunty schooner you can change the movement speed of players using VRCPlayerApi.SetWalkSpeed and SetRunSpeed. Check out the graph on the default VRCWorld prefab for an example.

errant pilot
#

@floral dove Can that work, lets say, when someone enters a collider? Or interacts with an object? Or can it only be set when the map loads?

floral dove
#

@errant pilot it can be set at any time.

errant pilot
#

That is something new with udon... Thats very neat

bleak widget
#

I know this question gets over asked, but any update on the potential timeline for video players and/or the audio rework?

scarlet lake
#

I'm very confused about UI buttons, I set them to GameObject.SetActive (Bool) and it only turns the object on, not back off if clicked again

floral dove
#

Both are bring actively worked on right now. Video Players are very likely to be in the next release. Audio upgrades may need another release or two but they're not far out either.

scarlet lake
floral dove
#

@scarlet lake check out the UdonExampleScene for an example of a working Toggle. The Mirror system has an Udon graph that is made to be reusable, which will turn things on and off to match a UIToggle.

scarlet lake
#

ffs lol why must nothing be straight forward

floral dove
#

Your inspector there just sends GameObject.SetActive false since you have an unchecked box.

scarlet lake
#

Yes, turn world audio off

#

should be if clicked again, return on

floral dove
#

But that box will never change it's value because you're never changing it.

#

You made a Button, Unity has no way of knowing it's supposed to be a toggle.

scarlet lake
#

kms lol

#

thanks

bleak widget
#

Thanks for that update on the progress. I appreciate all the work you guys do

scarlet lake
#

Oh, I see, there's a toggle version. Of the button.

errant pilot
#

@scarlet lake If you do Gamobject.setactive(!Gameobject.ActiveInHiearchy), itll set the gameobject the opposite of what it is in the hiearchy, aka, toggle.

stark adder
#

Can you make buttons passthrough ? If i make it pass through it just becomes no longer interactable..

bleak widget
#

If you make the collider a trigger, I believe you can pass through it and make it intractable

errant pilot
#

Is it a UI button or a gameobject @stark adder

stark adder
#

GameObject

errant pilot
#

Under your collider settings, check isTrigger

#

Youll still interact with it, but your player model will passthrough it

stark adder
#

ah

#

Thanks! Will test it in sec!

#

Perfect working as expected! Thanks

errant pilot
#

Np

rugged garnet
#

Would text mesh pro gameobjects appear in the VRChat Camera?

bleak widget
#

They have worked for me, yes

rugged garnet
#

Thanks, Ill test it out.

plucky tree
#

There weren't any errors before I imported the SDK??? And then all of these just exploded in :( I have no idea what any of these are
(please ping if replying)

errant pilot
#

@plucky tree Seems that your sdk didnt import correctly. As it is missing some of it's dependencies. Delete the SDK from your assets folder, then reimport it, making sure everything is checked before you hit the import button

scarlet lake
#

Delete everything regarding your VRChat SDK then import it again. Looks like you tried updating it, skipping the clearing step which can cause a lot of errors

#

@plucky tree

floral dove
#

@plucky tree - also looks like you may be importing several different SDKs in one project? Keep SDK3 Worlds, SDK3 Avatars and SDK2 away from each other.

plucky tree
#

I wiped all the vrc stuff from my folder and reimported it, and the same errors are coming up
I'm also only importing the SDK3/Udon package 😔

#

I'm gonna try importing it into an empty project and see if it pops up the same errors

sick dawn
#

can someone help me with this? i was updating the pictures in my world and then it's not uploading the updated pictures. when i check for errors it said udon is missing but it say that it's in play mode but i'm not in play mode. what's going on?

floral dove
#

@sick dawn have you tried restarting Unity?

sick dawn
#

yes

floral dove
#

ok, good. Next general troubleshooting advice I have is to close Unity, delete your Library folder, then re-open Unity.

#

this will not delete any of your assets, it's just cached data

sick dawn
#

@floral dove ok it fixed the udon problem but the updated pictures are no uploading when i do build and test.

floral dove
sick dawn
#

@floral dove didn't show how to fix the update problem

floral dove
#

Did you delete your local cache?

scarlet lake
#

I've got a problem. My world is fine in unity but in VRChat nothing is updating. Does anyone know why this could be happening?

scarlet lake
#

Ah, server issues. That's probably it.

floral dove
#

@scarlet lake check the link above and the announcement. You can clear your cache manually, it may help.

scarlet lake
#

Thanks, I'll try it ^^

scarlet lake
#

My cache isn't getting cleared for some reason :/

scarlet lake
#

How do I manually clear the cache through the files?

flint urchin
#

Momo linked to it a few messages up

scarlet lake
#

Oh right, thanks.

#

It works now ^^

edgy moss
#

I can't get my music to play. I dragged an Audio Source into the world, assigned an audio clip, Play on Awake is checked. Then I added a VRC Spatial Audio Source component. But when I build and test, just silence 😦 did I miss a step?

scarlet lake
#

@edgy moss Did you set the the spatial blend to 2d?

#

also, make sure volume and priority is high enough to be able to hear it.

edgy moss
#

both of those things are indeed in place, but thank you so much for your response! 🙂

scarlet lake
#

Is it normal for an udon world to be 40mb with barely anything on it?

#

Mines 35mb and all it has is 2 dir lights, 1 camera, a world descriptor, a small mesh with an animation and particles, and a small terrain with nothing on in.

#

Created a new world to test. I guess it's not normal. Hmmm...

scarlet lake
#

This random texture is reflecting light. Does anyone know how to fix this? The diffuse is just a normal png. Any other png works, but I don't know why.

#

It's the dark texture btw.

#

Fixed it by remaking the texture, but that was weird.

#

This is what it was supposed to look like. If anyone know what went wrong there, I'd like to know.

west compass
#

Hey, I'm new to Udon.
I made this Udon graph to make neon lights look glitchy :

#

But when I attach this program to my game objects absolutely nothing happen (no light glitch).

#

Question : what am I doing wrong? is the graph correct?

#

Thank you in advance 🔥

scarlet lake
#

Works in everything but VRChat :/

#

It's just white in VRChat.

#

(Sorry for spamming this chat with so many problems)

west compass
#

Hey,

I'm stuck with the exact same scene. Even if I create a new project and a new scene with a new scene descriptor and click on VRC SDK > build, Unity builds the exact same old scene... 😐

Please help changing the build scene. Thank you in advance

vapid kettle
#

yo I was just about to ask the same thing @west compass asked, it happens rn to me too

#

is there some type of global issue rn with testing worlds?

#

does testing a world right now work for anyone else?

#

uh I checked the world chat under development and they said its a global issue, rip

west compass
#

Alright, thanks for that info. I was hyped to create my first world.
VRC is like: nope, stop it. you'll not test your world

vapid kettle
#

Haha I'm sorry that happend 😅 I was working on udon stuff but hopefully they'll fix it soon so we both can go back and continue our worlds

terse palm
#

I've been struggling to make a teleport button ive been trying to follow tutorials but with no results, can someone please help me

proud snow
#

@misty berry VRChat servers are broken, heard there will be a fix in the meantime

#

publishing a world still works...

#

How do I enable/disable a gameobject component in Udon?

visual crow
#

Anyone have any tips for reducing file size of your world? I've already reduced textures down to 512 and Crunched them, deleted any assets,textures,prefabs and scenes I'm not using.

visual crow
#

Well I managed to figure out what some of my biggest memory usages were and it was some sketchup models I decided to convert to FBX and decimate which reduced the file size by almost 75% so that's a start ^^

#

I'm still confused why my textures memory usage was so high even after crunching and reducing to 512 though.

surreal flume
#

Are you talking about ram or file size?

shy cave
#

How do I add pens that can draw in the air in Udon or just SDK3 in general?

#

All of the prefabs I have tried so far haven't worked.

misty berry
#

any idea why my local build & test using an old version of my map?, having to publish each time i want to test which takes 10x as long

visual crow
#

File Size

#

I have another question though. Sometimes my 3d Models get it's Move/Scale Adjustment axis messed up and it's offset very far from my view. Is there any way to reset this or fix it in unity?

azure moon
#

it is only me or others too? I made a world and now i started a new one but when i try to build for local test it is just loads the previous world.

vapid kettle
#

yes this is a global bug

native estuary
#

@azure moon current version of vrchat has a problem with local cache

azure moon
#

and there is any way to clear that local cache manually until they fix it?

native estuary
#

Results can vary

azure moon
#

let me see maybe it is working

#

okey thnaks for the help the manual cache clear is worked for me

deft magnet
#

erm.. I have no idea what I am doing and the documentation I can find doesn't cover it and youtube vids seem to be on months old version of udon, I have a world and it has an animated oceanic mesh in it, I simply want the mesh to animate in an infinite loop upon the world loading for people, however it does not animate at all, how can I make this happen?

floral dove
#

It you could just set your animator to play by default if you don't need it tied to any specific action.

hearty linden
#

Trying to make a radio.music player that will play and change songs for all users when a player clicks it. It works local for everyone but having trouble making it work globally for all players in world. This is what i've tried. I'm probably not using that correctly.

deft magnet
#

@deft magnet ill try , thankyou hopefully I can understand ^^

#

@floral dove sorry still not used to discord yet, um, I already looked at those videos, I saw nothing that told me how to do that in them

#

maybe im a bit dense >.<

floral dove
#

It seems like you don't understand how to use Udon yet, which is cool, just means you have some things to learn. Those videos don't teach you exactly what to do, but they'll teach you how Udon works and you can apply that to your specific situation.

hearty linden
#

@deft magnet I think you can get an object to animate looped without any udon. if you drag your animation clip to the animated object in your scene, and make sure the clip has loop time checked, I think it should animate and loop automatically. Not 100% sure though.

deft magnet
#

I did but it does not play, in 2.0 I had to do that too but I also had to drag an animation controller onto it and then in the controller set the idle animation to the clip for the object, however, you can not do that in udon

#

because animation override controller cs does not exist

plucky tree
hearty linden
#

did a quick test and seems to be working for me with an animated character. not using any udon. When i run build & test world opens with character animated. (though today I need to make sure I delete my cache before every build and test)

deft magnet
#

does it animate when you click play?

#

maybe It just doesnt in play

hearty linden
#

yes works in play also

deft magnet
#

wha? how did you get "animclip" in yours?

#

are you running udon vrcsdk?

#

I dont have that as an option

hearty linden
#

running current sdk

deft magnet
#

yes but the udon one or the vrc avatar 2 one

#

there are 2

#

current

#

theres vrc sdk 2 then avatar 3 and udon so 3 I guess actually

hearty linden
#

the sdk3 worlds

deft magnet
#

thats udon then >.<

#

so why dont I have anim clip D:

#

my whole script list is completely empty

#

theres nothing at all

dense halo
#

I heard that in the "vuirtualfurence convention" map that menus and buttons were scaled based upon the local avatar height. Does anyone know where I would get that information from if I was making a world? As in where would I be able to find a value pertaining to the height of the local avatar?

surreal flume
#

When launching VRC in local testing is there a way to get debug logs from my client?

deft magnet
#

finally got it, thankyou, that was sooo confusing >.< xD

floral dove
dense halo
#

To reply to myself you can get the headbone location of the avatar, so using that you've be able to work out their height if you know their spawn location or even compare to the foot bone.

#

But secondly is there a way to tell when a player changes avatar?

#

So I can then change the height to be appropriate when the player changes avatar.

#

Maybe I could do it thought the setup of the pedestal to tell all the important things that the player has changed height?

floral dove
#

@dense halo - thanks for adding that helpful info. I'll recommend that you use Tracking Data instead of Bone Data when possible because bone data can change a bit based on the avatar setup, whereas Tracking Data should give you the real World Positions of the Avatar's head and hands. You can get the data from VRCPlayerApi.GetTrackingData
Unfortunately, no - there is no method to directly detect an avatar change, you'll need to come up with a workaround.

#

@surreal flume - check this documentation for all the info there is to know about debugging Udon when running in the client:

#

Here's how to Debug your Udon Projects: https://docs.vrchat.com/docs/debugging-udon-projects

surreal flume
#

Thanks. Also clearing out Cache-WindowsPlayer fixes the world loading problem.

floral dove
#

glad to hear it!

dense halo
#

@floral dove Thanks for the tip to use the tracking data, I'm still new to unity and this so working a lot out as I go. I assume that gives you the headset location?

floral dove
#

yes - the tracking data represents the headset and controllers

dense halo
#

Is it safe to assume that all objects spawn at the start of the game if in the world, so I can use OnSpawn as an alternative to "Start" or unreals "Begin Play"?

#

Or is onsceneloaded better?

floral dove
#

I don't know for sure, I'd recommend using Start, as that should run after all components are registered and available, network is settled, etc.

dense halo
#

Okay thanks.

floral dove
#

You can use a Block node if you want several things to happen in order on Start without making a long chain

dense halo
#

I just didn't know if start was udonsharp friendly in code as it wasn't in the list from the UdonSharpBehaviour.cs

fiery yoke
#

Start is a Mono function

#

meaning that UdonSharp doesnt specifically need a stub for it. Which in return means its not in that "special" list

dense halo
#

Ah okay understood! Thanks.

fiery yoke
#

So are Update, FixedUpdate and LateUpdate btw

dense halo
#

Is there a pipeline of the order things happen in?

#

So I can know if a player will appear in the level before "Start" happens?

fiery yoke
#

Good luck getting through that

dense halo
#

Thanks!

#

This server is so friendly! I'm actually getting answers to questions, if I'm spamming it too much let me know!

floral dove
#

Not at all - appreciate your well-formed questions and you following-up with the answers when you find them.

daring copper
#

hm...my world isnt updating when i click build and test

#

its stuck at an older version

#

this has been happening to me with avatars too and jumping on a vpn fixed that

#

when i wasnt on a vpn i couldnt even connect to the built world when testing it, jumping on the vpn allowed me to at least load the world but its always an older version of it

hearty linden
#

yeah that's been happening today, it's in the second topic pin

#

have to manually delete cache

daring copper
#

ah okay thanks

#

do i need to put a vrc ui shape script on every canvas?

#

like if i had a canvas beneath a canvas, does that require the ui shape script? or just the highest one in the hierarchy

floral dove
#

@daring copper why multiple canvases? Pretty sure you should only have one canvas at top, the rest can just be UI elements.

daring copper
#

yeah i just realized that haha, i was kind of using canvases like i would use grids in xamarin or wpf to line things up and keep structure, but i should be using panels instead...i think

#

at least the first result on google told me to use panels

#

but would that be the reason it wouldnt work, like would the ui shape script break if i had multiple canvases?

#

hm...just tested it after switching everything over to canvases and im still not getting button click events to fire or the blue reticle

#

omg...

#

i already cleared my cache but i had to do it again it was an old version of the world again >.>

floral dove
#

Yeah, you may have to clear your cache each time until the patch next week.

#

Panels should work. Make sure your canvas and children are not in the UI layer. You can always check your work against the Canvases in the UdonExampleScene

scarlet lake
#

I'm still having problems with my water shader. No matter what I do, It's just white in VRC.

floral dove
#

Does it use any scripts?

scarlet lake
floral dove
#

You can't use Scripts in VRChat - that's why we made Udon!
https://docs.vrchat.com/docs/what-is-udon

#

If you want to use the script, you need to create it in the Udon Graph or with UdonSharp. If you're new to programming, those may be difficult tasks. You can start your journey by reading those docs and then going through the UdonExampleScene to learn how you can put things together.

scarlet lake
#

If I just just copy paste the contents of the script to an U# script. Would that work?

floral dove
#

Nope! You gotta learn if you want to make custom scripts. Start with the docs I posted.

scarlet lake
#

Well this script is about 500 words long so there's no way I can convert this. Is there a VRC ready water shader I can use somewhere?

deft magnet
#

o.o

#

SO MoMo I finally got the animation to work xD

#

but now I am sad because I have a new problem >.< it seems like the sheer amount of data in my map is choking the sdk to death when I attempt to hit the "builder" button the entire unity session stalls to an infinite hang, and If I manipulate memory to force the function to execute to bypass the stall the sdk crashes

floral dove
#

Oh wow, never heard of that, sorry. Do you get any errors in your Editor log? How big are your animations / models?

deft magnet
#

no, it never even gets to generate a log, the whole thing dies

#

my map is a fully modeled cruise ship vacation for furries type thing I been working on and I been working on it for a while now the ship base alone before I started modding it was 157 megs but it has since grown to 1.8 gigs from alterations and fleshing it out floor by floor, I think its the ammount of memory or data the sdk is trying to work with or something, I made it fully functional and it sits in a bathtub with a yeenling playing with the ship in the background as his momma yeen scrubs him with a bubble bath animation in the distance xD, ish cuute xp, but then outside the giant bathroom is another scene which is a city setpiece with the king of all cosmos in the stars... I dont know how much data its putting through to the sdk.. er I have 1.2 tb of ram... I think I might have gotten a little too ambitous xD

floral dove
#

Oh yeah, you can't upload that, sorry.

#

I don't know exactly what our file size cap is but I recommend you get it under 200 at least.

deft magnet
#

aww ;/ ok

scarlet lake
#

A tip a found out yesterday is that textures can take up a lot of space. Try reducing the quality of textures.

floral dove
#

You can also break things up into multiple worlds with portals between, but you'll want to reduce the size of each world.

daring copper
#

hm...my ui works normally when it's not rotated, trying to rotate it 45 degrees to match an object though makes it so i cant click the buttons

shy cave
#

How do I add pens that can draw in the air in Udon or just SDK3 in general? All of the prefabs I have tried so far haven't worked.

dense halo
#

I'm getting a "System.Exception: Invocation requires method expression!" error for this:

                    VRCPlayerApi LocalPlayer = VRC.SDKBase.Networking.LocalPlayer;
                    Vector3 PlayerHeight = LocalPlayer.GetTrackingData(VRCPlayerApi.TrackingDataType.Head).position;

Can anyone help me out?

#

Is it the way I'm passing in the head tt?

floral dove
#

@dense halo you're calling a method as if it's a property.

shy cave
#

Okay, thank you*!*

topaz smelt
#

Recently got into world building. However until now in the building process i've started to get these errors when trying to test a world and when it failed it just booted me into my previous save build. Anyone know what may be the cause of these errors?

native estuary
topaz smelt
#

Thank you ! ill try this out but im glad i atleast know whats going on now.

solar wolf
#

Hi hi vrcHandWave Is it possible to turn off my HQ mirror when i turn on the LQ one?

native estuary
#

Yes

solar wolf
#

ok i dont know how for the moment but now i know i can ^^ i just need to found it 😋

native estuary
#

You just do what you do to the HQ mirror but in reverse 😄

solar wolf
#

?

#

but if i do that one of the mirror have to be on all the time?

native estuary
#

You need to toggle the mirror so then you can turn it off as well

#

So toggle on the mirror you want to activate and off on the other

#

Then you can press it again to turn them off

solar wolf
#

oh ok i get it now thank you

hearty linden
#

in an udon script, how to I get player who initiated udon behaivor (trying to do setowner on object, which needs a player input, trying to figure out what i need to plug in to that)

floral dove
#

@hearty linden - actions always happen locally first, so you want to get Networking.GetLocalPlayer

hearty linden
#

@floral dove Thanks. Trying that now. hopefully it does what I think it does for me 🙂

scarlet lake
#

how do i use the combat system?

floral dove
#

@scarlet lake the combat system is not updated for Udon yet, you'll need to use SDK2 if you want to use that.

scarlet lake
#

how did it work on the boxing map then?

floral dove
#

I believe they created their own system through lots of hard work.

worthy beacon
#

hello yes?

#

am in middle of updating it XD

#

the combat system is accessible through udon, i wouldn't recommend it atm, after avatar 3 the ragdoll effect was broken. If you wanna force a death animation it might be better to rig up your own by using a station, forcing a player onto it, play said animation, then force the player off, then teleporting them

#

its somthing i plan to look into on the update after this one that im doing

icy gale
floral dove
#

@icy gale check second pin in this channel about clearing your cache

icy gale
#

i've been deleting the vrchat folder in appdata each time i close the game