Forum Discussion
pjenness
10 years agoRising Star
Inheriting the OVEPLayercontroller
Hiya
In my app I'm inheriting from the OVR player controller to use most of its functionality, however I change a little and need to access some of the attributes.
Im wondering is there a way to access the Protected attributes without changing the file, as I have been making them public so they become accessible.
If I dont I get:
Assets/DriftVFX/Scripts/DriftOVRPlayerController.cs(217,25): error CS0122: `OVRPlayerController.MoveThrottle' is inaccessible due to its protection level
Assets/DriftVFX/Scripts/DriftOVRPlayerController.cs(205,69): error CS0122: `OVRPlayerController.InitialPose' is inaccessible due to its protection level
etc
Do I have to re-expose/override them in my DriftOVRPlayerController class ?
I'd prefer not to have to update the ovrPlayerController each time it gets updated.
ANy ideas?
Cheers
-P
In my app I'm inheriting from the OVR player controller to use most of its functionality, however I change a little and need to access some of the attributes.
Im wondering is there a way to access the Protected attributes without changing the file, as I have been making them public so they become accessible.
If I dont I get:
Assets/DriftVFX/Scripts/DriftOVRPlayerController.cs(217,25): error CS0122: `OVRPlayerController.MoveThrottle' is inaccessible due to its protection level
Assets/DriftVFX/Scripts/DriftOVRPlayerController.cs(205,69): error CS0122: `OVRPlayerController.InitialPose' is inaccessible due to its protection level
etc
Do I have to re-expose/override them in my DriftOVRPlayerController class ?
I'd prefer not to have to update the ovrPlayerController each time it gets updated.
ANy ideas?
Cheers
-P
2 Replies
Replies have been turned off for this discussion
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 12 years ago
- 3 years ago