Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Frequently Asked Questions

Bryan Bortz edited this page Jun 10, 2020 · 17 revisions

Questions


Does UdonSharp support X feature?

If Udon supports it, then so does UdonSharp.

Check Class exposure tree

Can I access the player camera?

No, you can not access the player's camera. You can, however, get the head position and rotation.

See VRCPlayerApi.GetTrackingData

Vector3 headPos = localPlayer.GetTrackingData(TrackingData.Head).position

Can I have more than one UdonSharp Udon Behavior on a GameObject?

Yes.

I'm starting from scratch and need to use C# tutorials. What common aspects of C# don't work in UdonSharp?

If you are learning UdonSharp and not familiar with C# already, you may run across some commonly used techniques that don't work in Udon and UdonSharp yet. These include, but are not limited to, the following:

  • Enums not already defined by Unity
  • Generic classes (Class<T>) and methods
  • Inheritance
  • Interfaces
  • Method overloads
  • Properties