Navigation
API > API/Plugins > API/Plugins/VPRoles
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USubsystem
- UDynamicSubsystem
- UEngineSubsystem
- UVirtualProductionRolesSubsystem
References
| Module | VPRoles |
| Header | /Engine/Plugins/Experimental/VirtualProduction/VPRoles/Source/VPRoles/Public/VPRolesSubsystem.h |
| Include | #include "VPRolesSubsystem.h" |
Syntax
UCLASS&40;&41;
class UVirtualProductionRolesSubsystem : public UEngineSubsystem
Remarks
Subsystem for common Virtual Production roles operations. The machine role(s) in a virtual production context read from the command line. ie. "-VPRole=[Role.SubRole1|Role.SubRole2]"
Variables
| Type | Name | Description | |
|---|---|---|---|
| FOnRolesChanged | OnRolesChangedBP | Delegate called when the roles are modified, ie. role is added, current roles are replaced, etc. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Add a new virtual production role. | ||
| TArray< FString > | Get the currently active Virtual Production roles. | ||
| FString | |||
| TArray< FString > | GetAllRoles () |
Get all available roles that can be set as current. | |
| FName | |||
| const FGameplayTagContainer & | Get the roles container, either from the command line or from the VP Roles settings. | ||
| const TSet< FName > & | |||
| bool | HasActiveRole
(
const FGameplayTag& Role |
||
| bool | HasActiveRole
(
const FString& Role |
||
| bool | |||
| bool | |||
| FOnRolesChangedNative & | Delegate called when the roles are modified, ie. role is added, current roles are replaced, etc. | ||
| bool | RemoveRole
(
const FString& RoleName |
Remove a virtual production role. | |
| void | SetActiveRoles
(
const TArray< FString >& Roles |
Set the current Virtual Production roles. | |
| void | UseCommandLineRoles
(
bool bUseCommandLineRoles |
Set whether the command line roles should be used if any were specified. |
Overridden from USubsystem
| Type | Name | Description | |
|---|---|---|---|
| void | Deinitialize () |
Implement this for deinitialization of instances of the system | |
| void | Initialize
(
FSubsystemCollectionBase& Collection |
Implement this for initialization of instances of the system |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnRolesChanged |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EGetRolesPtrSource |
Typedefs
| Name | Description |
|---|---|
| FOnRolesChangedNative |