(One intermediate revision by one other user not shown)
Line 3:
Line 3:
|Name=Screen View Permissions
|Name=Screen View Permissions
}}
}}
{{stub}}
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.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|ListMode|ListFilterMode|
|ListMode|ListFilterMode| How to filter and handle the list of <code>ViewFilters</code> for the selected roles.
|ViewFilters|{{RootFieldType|SyncList`1|[[#ViewTargettingFilter|ScreenViewPermissions.ViewTargettingFilter]]}}|TypeAdv1=true| 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 ==
{{Table TypeFields
|ViewTargettingType|{{RootFieldType|SyncType}}|TypeAdv0=true| 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.
}}
}}
== Behavior ==
== Usage ==
{{stub}}
== Examples ==
== Examples ==
Can be used to prevent desktop users from going into third person or free cam, to prevent cheating in horror games or mazes.
[[Category:Components With Nested Types{{#translation:}}|Screen View Permissions]]
[[Category:Components With Nested Types{{#translation:}}|Screen View Permissions]]
[[Category:ComponentStubs]]
Latest revision as of 06:04, 17 March 2025
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.