Component:ScreenViewPermissions

From Resonite Wiki
Revision as of 18:20, 2 February 2025 by 989onan (talk | contribs) (add info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Component image 
Screen View Permissions component as seen in the Scene Inspector

The ScreenViewPermissions component is a Permissions type component that can apply rules for what certain roles in a session can do with views like third person, free cam, or UI targetting.

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. Some components stop their functionality when this field is disabled, but some don't.
ListMode ListFilterMode How to filter and handle the list of ViewFilters for the selected roles.
ViewFilters list of ViewTargettingFilter A list of targetting views to check a user with the selected role(s) with and act accordingly on if they are using one in the list.

ViewTargettingFilter

Fields
Name Type Description
ViewTargettingType direct SyncType The C# Type a View target has to be in order to be matched to this list item.
RequireTag String This tag is required for a View targeting mode to be matched to this list item.
EditModeOnly Bool The user has to be in edit mode for a View targeting mode to be matched to this list item.

Usage

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


Examples

Can be used to prevent desktop users from going into third person or free cam, to prevent cheating in horror games or mazes.

See Also