This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 87
Frequently Asked Questions
Bryan Bortz edited this page Jun 10, 2020
·
17 revisions
- Does UdonSharp Support X feature?
- Can I access the player camera?
- Can I have more than one UdonSharp Udon Behavior on a GameObject?
- I'm starting from scratch and need to use C# tutorials. What common aspects of C# don't work in UdonSharp?
If Udon supports it, then so does UdonSharp.
Check Class exposure tree
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
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