Component:CameraPermissions

From Resonite Wiki
Revision as of 20:55, 3 March 2024 by PJB (talk | contribs) (Automated: update Fields)


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Camera Permissions component as seen in the Scene Inspector


Intoduction

The CameraPermissions component allows you to set up who can use which camera mode.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
CameraModeFilterMode ListFilterMode Whether to allow or disallow the CameraModes
CameraModes direct SyncFieldList`1<CameraPositioningMode> List of Camera modes which decide how the camera looks at users/the world.
AllowFramingOtherUsers Bool Determines whether focusing the camera on other user is allowed.

Usage

Adding an item to the list and giving it the appropriate item from the CameraModes which will then determine what camera mode methods users of that role are allowed to use.

Examples

If the Filter is set to Whitelist and given Group and the component is set to Guest as the role: It will allow Guest users to only use Group as a way to record their surroundings.

Related Components