Class SteamUGC
Purpose: Steam UGC support API
Inherited Members
Namespace: Unity.Steamworks.Interop
Assembly: Unity.Steamworks.Interop.dll
Syntax
public static class SteamUGC
Methods
AddAppDependency(PublishedFileId_t, AppId_t)
add/remove app dependence/requirements (usually DLC)
Declaration
public static SteamAPICall_t AddAppDependency(PublishedFileId_t nPublishedFileID, AppId_t nAppID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| AppId_t | nAppID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
AddAppDependencyAsync(PublishedFileId_t, AppId_t)
Async version of AddAppDependency(PublishedFileId_t, AppId_t).
Declaration
public static Task<AddAppDependencyResult_t> AddAppDependencyAsync(PublishedFileId_t nPublishedFileID, AppId_t nAppID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| AppId_t | nAppID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<AddAppDependencyResult_t> | The AddAppDependencyResult_t Steam reports once the call completes. |
AddContentDescriptor(UGCUpdateHandle_t, EUGCContentDescriptorID)
Calls the Steamworks ISteamUGC::AddContentDescriptor method.
Declaration
public static bool AddContentDescriptor(UGCUpdateHandle_t handle, EUGCContentDescriptorID descid)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| EUGCContentDescriptorID | descid | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddDependency(PublishedFileId_t, PublishedFileId_t)
parent-child relationship or dependency management
Declaration
public static SteamAPICall_t AddDependency(PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nParentPublishedFileID | Passed through to |
| PublishedFileId_t | nChildPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
AddDependencyAsync(PublishedFileId_t, PublishedFileId_t)
Async version of AddDependency(PublishedFileId_t, PublishedFileId_t).
Declaration
public static Task<AddUGCDependencyResult_t> AddDependencyAsync(PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nParentPublishedFileID | Passed through to |
| PublishedFileId_t | nChildPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<AddUGCDependencyResult_t> | The AddUGCDependencyResult_t Steam reports once the call completes. |
AddExcludedTag(UGCQueryHandle_t, string)
Calls the Steamworks ISteamUGC::AddExcludedTag method.
Declaration
public static bool AddExcludedTag(UGCQueryHandle_t handle, string pTagName)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| string | pTagName | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddItemKeyValueTag(UGCUpdateHandle_t, string, string)
add new key-value tags for the item. Note that there can be multiple values for a tag.
Declaration
public static bool AddItemKeyValueTag(UGCUpdateHandle_t handle, string pchKey, string pchValue)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchKey | Passed through to |
| string | pchValue | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddItemPreviewFile(UGCUpdateHandle_t, string, EItemPreviewType)
add preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size
Declaration
public static bool AddItemPreviewFile(UGCUpdateHandle_t handle, string pszPreviewFile, EItemPreviewType type)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pszPreviewFile | Passed through to |
| EItemPreviewType | type | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddItemPreviewVideo(UGCUpdateHandle_t, string)
add preview video for this item
Declaration
public static bool AddItemPreviewVideo(UGCUpdateHandle_t handle, string pszVideoID)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pszVideoID | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddItemToFavorites(AppId_t, PublishedFileId_t)
Calls the Steamworks ISteamUGC::AddItemToFavorites method.
Declaration
public static SteamAPICall_t AddItemToFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nAppId | Passed through to |
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
AddItemToFavoritesAsync(AppId_t, PublishedFileId_t)
Async version of AddItemToFavorites(AppId_t, PublishedFileId_t).
Declaration
public static Task<UserFavoriteItemsListChanged_t> AddItemToFavoritesAsync(AppId_t nAppId, PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nAppId | Passed through to |
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<UserFavoriteItemsListChanged_t> | The UserFavoriteItemsListChanged_t Steam reports once the call completes. |
AddRequiredKeyValueTag(UGCQueryHandle_t, string, string)
Calls the Steamworks ISteamUGC::AddRequiredKeyValueTag method.
Declaration
public static bool AddRequiredKeyValueTag(UGCQueryHandle_t handle, string pKey, string pValue)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| string | pKey | Passed through to |
| string | pValue | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddRequiredTag(UGCQueryHandle_t, string)
Options to set for querying UGC
Declaration
public static bool AddRequiredTag(UGCQueryHandle_t handle, string pTagName)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| string | pTagName | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
AddRequiredTagGroup(UGCQueryHandle_t, IList<string>)
match any of the tags in this group
Declaration
public static bool AddRequiredTagGroup(UGCQueryHandle_t handle, IList<string> pTagGroups)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| IList<string> | pTagGroups | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
BInitWorkshopForGameServer(DepotId_t, string)
game servers can set a specific workshop folder before issuing any UGC commands. This is helpful if you want to support multiple game servers running out of the same install folder
Declaration
public static bool BInitWorkshopForGameServer(DepotId_t unWorkshopDepotID, string pszFolder)
Parameters
| Type | Name | Description |
|---|---|---|
| DepotId_t | unWorkshopDepotID | Passed through to |
| string | pszFolder | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
CreateItem(AppId_t, EWorkshopFileType)
Steam Workshop Creator API create new item for this app with no content attached yet
Declaration
public static SteamAPICall_t CreateItem(AppId_t nConsumerAppId, EWorkshopFileType eFileType)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nConsumerAppId | Passed through to |
| EWorkshopFileType | eFileType | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
CreateItemAsync(AppId_t, EWorkshopFileType)
Async version of CreateItem(AppId_t, EWorkshopFileType).
Declaration
public static Task<CreateItemResult_t> CreateItemAsync(AppId_t nConsumerAppId, EWorkshopFileType eFileType)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nConsumerAppId | Passed through to |
| EWorkshopFileType | eFileType | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<CreateItemResult_t> | The CreateItemResult_t Steam reports once the call completes. |
CreateQueryAllUGCRequest(EUGCQuery, EUGCMatchingUGCType, AppId_t, AppId_t, string)
Query for all matching UGC using the new deep paging interface. Creator app id or consumer app id must be valid and be set to the current running app. pchCursor should be set to NULL or "*" to get the first result set.
Declaration
public static UGCQueryHandle_t CreateQueryAllUGCRequest(EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, string pchCursor = null)
Parameters
| Type | Name | Description |
|---|---|---|
| EUGCQuery | eQueryType | Passed through to |
| EUGCMatchingUGCType | eMatchingeMatchingUGCTypeFileType | Passed through to |
| AppId_t | nCreatorAppID | Passed through to |
| AppId_t | nConsumerAppID | Passed through to |
| string | pchCursor | Passed through to |
Returns
| Type | Description |
|---|---|
| UGCQueryHandle_t | The value |
CreateQueryAllUGCRequest(EUGCQuery, EUGCMatchingUGCType, AppId_t, AppId_t, uint)
Query for all matching UGC using the new deep paging interface. Creator app id or consumer app id must be valid and be set to the current running app. pchCursor should be set to NULL or "*" to get the first result set.
Declaration
public static UGCQueryHandle_t CreateQueryAllUGCRequest(EUGCQuery eQueryType, EUGCMatchingUGCType eMatchingeMatchingUGCTypeFileType, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage)
Parameters
| Type | Name | Description |
|---|---|---|
| EUGCQuery | eQueryType | Passed through to |
| EUGCMatchingUGCType | eMatchingeMatchingUGCTypeFileType | Passed through to |
| AppId_t | nCreatorAppID | Passed through to |
| AppId_t | nConsumerAppID | Passed through to |
| uint | unPage | Passed through to |
Returns
| Type | Description |
|---|---|
| UGCQueryHandle_t | The value |
CreateQueryUGCDetailsRequest(PublishedFileId_t[], uint)
Query for the details of the given published file ids (the RequestUGCDetails call is deprecated and replaced with this)
Declaration
public static UGCQueryHandle_t CreateQueryUGCDetailsRequest(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| UGCQueryHandle_t | The value |
CreateQueryUserUGCRequest(AccountID_t, EUserUGCList, EUGCMatchingUGCType, EUserUGCListSortOrder, AppId_t, AppId_t, uint)
Query UGC associated with a user. Creator app id or consumer app id must be valid and be set to the current running app. unPage should start at 1.
Declaration
public static UGCQueryHandle_t CreateQueryUserUGCRequest(AccountID_t unAccountID, EUserUGCList eListType, EUGCMatchingUGCType eMatchingUGCType, EUserUGCListSortOrder eSortOrder, AppId_t nCreatorAppID, AppId_t nConsumerAppID, uint unPage)
Parameters
| Type | Name | Description |
|---|---|---|
| AccountID_t | unAccountID | Passed through to |
| EUserUGCList | eListType | Passed through to |
| EUGCMatchingUGCType | eMatchingUGCType | Passed through to |
| EUserUGCListSortOrder | eSortOrder | Passed through to |
| AppId_t | nCreatorAppID | Passed through to |
| AppId_t | nConsumerAppID | Passed through to |
| uint | unPage | Passed through to |
Returns
| Type | Description |
|---|---|
| UGCQueryHandle_t | The value |
DeleteItem(PublishedFileId_t)
delete the item without prompting the user
Declaration
public static SteamAPICall_t DeleteItem(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
DeleteItemAsync(PublishedFileId_t)
Async version of DeleteItem(PublishedFileId_t).
Declaration
public static Task<DeleteItemResult_t> DeleteItemAsync(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<DeleteItemResult_t> | The DeleteItemResult_t Steam reports once the call completes. |
DownloadItem(PublishedFileId_t, bool)
download new or update already installed item. If function returns true, wait for DownloadItemResult_t. If the item is already installed, then files on disk should not be used until callback received. If item is not subscribed to, it will be cached for some time. If bHighPriority is set, any other item download will be suspended and this item downloaded ASAP.
Declaration
public static bool DownloadItem(PublishedFileId_t nPublishedFileID, bool bHighPriority)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| bool | bHighPriority | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetAppDependencies(PublishedFileId_t)
request app dependencies. note that whatever callback you register for GetAppDependenciesResult_t may be called multiple times until all app dependencies have been returned
Declaration
public static SteamAPICall_t GetAppDependencies(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
GetAppDependenciesAsync(PublishedFileId_t)
Async version of GetAppDependencies(PublishedFileId_t).
Declaration
public static Task<GetAppDependenciesResult_t> GetAppDependenciesAsync(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<GetAppDependenciesResult_t> | The GetAppDependenciesResult_t Steam reports once the call completes. |
GetDownloadedItems(out PublishedFileId_t, uint)
Returns the ids of the items downloaded
Declaration
public static uint GetDownloadedItems(out PublishedFileId_t pvecPublishedFileIDs, uint cMaxEntries)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | pvecPublishedFileIDs | Passed through to |
| uint | cMaxEntries | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetItemDownloadInfo(PublishedFileId_t, out ulong, out ulong)
get info about pending update for items that have k_EItemStateNeedsUpdate set. punBytesTotal will be valid after download started once
Declaration
public static bool GetItemDownloadInfo(PublishedFileId_t nPublishedFileID, out ulong punBytesDownloaded, out ulong punBytesTotal)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| ulong | punBytesDownloaded | Passed through to |
| ulong | punBytesTotal | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetItemInstallInfo(PublishedFileId_t, out ulong, out string, uint, out uint)
get info about currently installed content on disc for items that have k_EItemStateInstalled set if k_EItemStateLegacyItem is set, pchFolder contains the path to the legacy file itself (not a folder)
Declaration
public static bool GetItemInstallInfo(PublishedFileId_t nPublishedFileID, out ulong punSizeOnDisk, out string pchFolder, uint cchFolderSize, out uint punTimeStamp)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| ulong | punSizeOnDisk | Passed through to |
| string | pchFolder | Receives the string |
| uint | cchFolderSize | Passed through to |
| uint | punTimeStamp | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetItemState(PublishedFileId_t)
get EItemState flags about item on this client
Declaration
public static uint GetItemState(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetItemUpdateProgress(UGCUpdateHandle_t, out ulong, out ulong)
Calls the Steamworks ISteamUGC::GetItemUpdateProgress method.
Declaration
public static EItemUpdateStatus GetItemUpdateProgress(UGCUpdateHandle_t handle, out ulong punBytesProcessed, out ulong punBytesTotal)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| ulong | punBytesProcessed | Passed through to |
| ulong | punBytesTotal | Passed through to |
Returns
| Type | Description |
|---|---|
| EItemUpdateStatus | The value |
GetNumDownloadedItems()
Returns the number of items actually downloaded locally
Declaration
public static uint GetNumDownloadedItems()
Returns
| Type | Description |
|---|---|
| uint | The value |
GetNumSubscribedItems(bool)
number of subscribed items
Declaration
public static uint GetNumSubscribedItems(bool bIncludeLocallyDisabled = false)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | bIncludeLocallyDisabled | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetNumSupportedGameVersions(UGCQueryHandle_t, uint)
Some items can specify that they have a version that is valid for a range of game versions (Steam branch)
Declaration
public static uint GetNumSupportedGameVersions(UGCQueryHandle_t handle, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetQueryUGCAdditionalPreview(UGCQueryHandle_t, uint, uint, out string, uint, out string, uint, out EItemPreviewType)
Calls the Steamworks ISteamUGC::GetQueryUGCAdditionalPreview method.
Declaration
public static bool GetQueryUGCAdditionalPreview(UGCQueryHandle_t handle, uint index, uint previewIndex, out string pchURLOrVideoID, uint cchURLSize, out string pchOriginalFileName, uint cchOriginalFileNameSize, out EItemPreviewType pPreviewType)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| uint | previewIndex | Passed through to |
| string | pchURLOrVideoID | Receives the string |
| uint | cchURLSize | Passed through to |
| string | pchOriginalFileName | Receives the string |
| uint | cchOriginalFileNameSize | Passed through to |
| EItemPreviewType | pPreviewType | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCChildren(UGCQueryHandle_t, uint, PublishedFileId_t[], uint)
Calls the Steamworks ISteamUGC::GetQueryUGCChildren method.
Declaration
public static bool GetQueryUGCChildren(UGCQueryHandle_t handle, uint index, PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | cMaxEntries | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCContentDescriptors(UGCQueryHandle_t, uint, EUGCContentDescriptorID[], uint)
Calls the Steamworks ISteamUGC::GetQueryUGCContentDescriptors method.
Declaration
public static uint GetQueryUGCContentDescriptors(UGCQueryHandle_t handle, uint index, EUGCContentDescriptorID[] pvecDescriptors, uint cMaxEntries)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| EUGCContentDescriptorID[] | pvecDescriptors | Passed through to |
| uint | cMaxEntries | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetQueryUGCKeyValueTag(UGCQueryHandle_t, uint, string, out string, uint)
Return the first value matching the pchKey. Note that a key may map to multiple values. Returns false if there was an error or no matching value was found.
Declaration
public static bool GetQueryUGCKeyValueTag(UGCQueryHandle_t handle, uint index, string pchKey, out string pchValue, uint cchValueSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| string | pchKey | Passed through to |
| string | pchValue | Receives the string |
| uint | cchValueSize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCKeyValueTag(UGCQueryHandle_t, uint, uint, out string, uint, out string, uint)
Return the first value matching the pchKey. Note that a key may map to multiple values. Returns false if there was an error or no matching value was found.
Declaration
public static bool GetQueryUGCKeyValueTag(UGCQueryHandle_t handle, uint index, uint keyValueTagIndex, out string pchKey, uint cchKeySize, out string pchValue, uint cchValueSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| uint | keyValueTagIndex | Passed through to |
| string | pchKey | Receives the string |
| uint | cchKeySize | Passed through to |
| string | pchValue | Receives the string |
| uint | cchValueSize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCMetadata(UGCQueryHandle_t, uint, out string, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCMetadata method.
Declaration
public static bool GetQueryUGCMetadata(UGCQueryHandle_t handle, uint index, out string pchMetadata, uint cchMetadatasize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| string | pchMetadata | Receives the string |
| uint | cchMetadatasize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCNumAdditionalPreviews(UGCQueryHandle_t, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCNumAdditionalPreviews method.
Declaration
public static uint GetQueryUGCNumAdditionalPreviews(UGCQueryHandle_t handle, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetQueryUGCNumKeyValueTags(UGCQueryHandle_t, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCNumKeyValueTags method.
Declaration
public static uint GetQueryUGCNumKeyValueTags(UGCQueryHandle_t handle, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetQueryUGCNumTags(UGCQueryHandle_t, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCNumTags method.
Declaration
public static uint GetQueryUGCNumTags(UGCQueryHandle_t handle, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetQueryUGCPreviewURL(UGCQueryHandle_t, uint, out string, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCPreviewURL method.
Declaration
public static bool GetQueryUGCPreviewURL(UGCQueryHandle_t handle, uint index, out string pchURL, uint cchURLSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| string | pchURL | Receives the string |
| uint | cchURLSize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCResult(UGCQueryHandle_t, uint, out SteamUGCDetails_t)
Retrieve an individual result after receiving the callback for querying UGC
Declaration
public static bool GetQueryUGCResult(UGCQueryHandle_t handle, uint index, out SteamUGCDetails_t pDetails)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| SteamUGCDetails_t | pDetails | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCStatistic(UGCQueryHandle_t, uint, EItemStatistic, out ulong)
Calls the Steamworks ISteamUGC::GetQueryUGCStatistic method.
Declaration
public static bool GetQueryUGCStatistic(UGCQueryHandle_t handle, uint index, EItemStatistic eStatType, out ulong pStatValue)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| EItemStatistic | eStatType | Passed through to |
| ulong | pStatValue | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCTag(UGCQueryHandle_t, uint, uint, out string, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCTag method.
Declaration
public static bool GetQueryUGCTag(UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue, uint cchValueSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| uint | indexTag | Passed through to |
| string | pchValue | Receives the string |
| uint | cchValueSize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetQueryUGCTagDisplayName(UGCQueryHandle_t, uint, uint, out string, uint)
Calls the Steamworks ISteamUGC::GetQueryUGCTagDisplayName method.
Declaration
public static bool GetQueryUGCTagDisplayName(UGCQueryHandle_t handle, uint index, uint indexTag, out string pchValue, uint cchValueSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| uint | indexTag | Passed through to |
| string | pchValue | Receives the string |
| uint | cchValueSize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetSubscribedItems(PublishedFileId_t[], uint, bool)
all subscribed item PublishFileIDs
Declaration
public static uint GetSubscribedItems(PublishedFileId_t[] pvecPublishedFileID, uint cMaxEntries, bool bIncludeLocallyDisabled = false)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | cMaxEntries | Passed through to |
| bool | bIncludeLocallyDisabled | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetSupportedGameVersionData(UGCQueryHandle_t, uint, uint, out string, out string, uint)
Calls the Steamworks ISteamUGC::GetSupportedGameVersionData method.
Declaration
public static bool GetSupportedGameVersionData(UGCQueryHandle_t handle, uint index, uint versionIndex, out string pchGameBranchMin, out string pchGameBranchMax, uint cchGameBranchSize)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| uint | versionIndex | Passed through to |
| string | pchGameBranchMin | Receives the string |
| string | pchGameBranchMax | Receives the string |
| uint | cchGameBranchSize | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
GetUserContentDescriptorPreferences(EUGCContentDescriptorID[], uint)
Return the user's community content descriptor preferences
Declaration
public static uint GetUserContentDescriptorPreferences(EUGCContentDescriptorID[] pvecDescriptors, uint cMaxEntries)
Parameters
| Type | Name | Description |
|---|---|---|
| EUGCContentDescriptorID[] | pvecDescriptors | Passed through to |
| uint | cMaxEntries | Passed through to |
Returns
| Type | Description |
|---|---|
| uint | The value |
GetUserItemVote(PublishedFileId_t)
Calls the Steamworks ISteamUGC::GetUserItemVote method.
Declaration
public static SteamAPICall_t GetUserItemVote(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
GetUserItemVoteAsync(PublishedFileId_t)
Async version of GetUserItemVote(PublishedFileId_t).
Declaration
public static Task<GetUserItemVoteResult_t> GetUserItemVoteAsync(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<GetUserItemVoteResult_t> | The GetUserItemVoteResult_t Steam reports once the call completes. |
GetWorkshopEULAStatus()
Retrieve information related to the user's acceptance or not of the app's specific Workshop EULA
Declaration
public static SteamAPICall_t GetWorkshopEULAStatus()
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
GetWorkshopEULAStatusAsync()
Async version of GetWorkshopEULAStatus().
Declaration
public static Task<WorkshopEULAStatus_t> GetWorkshopEULAStatusAsync()
Returns
| Type | Description |
|---|---|
| Task<WorkshopEULAStatus_t> | The WorkshopEULAStatus_t Steam reports once the call completes. |
MarkDownloadedItemAsUnused(PublishedFileId_t)
Tells the client to no longer try to keep the item in its local cache, unless it was subscribed to by other users on this machine
Declaration
public static bool MarkDownloadedItemAsUnused(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
ReleaseQueryUGCRequest(UGCQueryHandle_t)
Release the request to free up memory, after retrieving results
Declaration
public static bool ReleaseQueryUGCRequest(UGCQueryHandle_t handle)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
RemoveAllItemKeyValueTags(UGCUpdateHandle_t)
remove all existing key-value tags (you can add new ones via the AddItemKeyValueTag function)
Declaration
public static bool RemoveAllItemKeyValueTags(UGCUpdateHandle_t handle)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
RemoveAppDependency(PublishedFileId_t, AppId_t)
Calls the Steamworks ISteamUGC::RemoveAppDependency method.
Declaration
public static SteamAPICall_t RemoveAppDependency(PublishedFileId_t nPublishedFileID, AppId_t nAppID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| AppId_t | nAppID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
RemoveAppDependencyAsync(PublishedFileId_t, AppId_t)
Async version of RemoveAppDependency(PublishedFileId_t, AppId_t).
Declaration
public static Task<RemoveAppDependencyResult_t> RemoveAppDependencyAsync(PublishedFileId_t nPublishedFileID, AppId_t nAppID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| AppId_t | nAppID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<RemoveAppDependencyResult_t> | The RemoveAppDependencyResult_t Steam reports once the call completes. |
RemoveContentDescriptor(UGCUpdateHandle_t, EUGCContentDescriptorID)
Calls the Steamworks ISteamUGC::RemoveContentDescriptor method.
Declaration
public static bool RemoveContentDescriptor(UGCUpdateHandle_t handle, EUGCContentDescriptorID descid)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| EUGCContentDescriptorID | descid | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
RemoveDependency(PublishedFileId_t, PublishedFileId_t)
Calls the Steamworks ISteamUGC::RemoveDependency method.
Declaration
public static SteamAPICall_t RemoveDependency(PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nParentPublishedFileID | Passed through to |
| PublishedFileId_t | nChildPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
RemoveDependencyAsync(PublishedFileId_t, PublishedFileId_t)
Async version of RemoveDependency(PublishedFileId_t, PublishedFileId_t).
Declaration
public static Task<RemoveUGCDependencyResult_t> RemoveDependencyAsync(PublishedFileId_t nParentPublishedFileID, PublishedFileId_t nChildPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nParentPublishedFileID | Passed through to |
| PublishedFileId_t | nChildPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<RemoveUGCDependencyResult_t> | The RemoveUGCDependencyResult_t Steam reports once the call completes. |
RemoveItemFromFavorites(AppId_t, PublishedFileId_t)
Calls the Steamworks ISteamUGC::RemoveItemFromFavorites method.
Declaration
public static SteamAPICall_t RemoveItemFromFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nAppId | Passed through to |
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
RemoveItemFromFavoritesAsync(AppId_t, PublishedFileId_t)
Async version of RemoveItemFromFavorites(AppId_t, PublishedFileId_t).
Declaration
public static Task<UserFavoriteItemsListChanged_t> RemoveItemFromFavoritesAsync(AppId_t nAppId, PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nAppId | Passed through to |
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<UserFavoriteItemsListChanged_t> | The UserFavoriteItemsListChanged_t Steam reports once the call completes. |
RemoveItemKeyValueTags(UGCUpdateHandle_t, string)
remove any existing key-value tags with the specified key
Declaration
public static bool RemoveItemKeyValueTags(UGCUpdateHandle_t handle, string pchKey)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchKey | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
RemoveItemPreview(UGCUpdateHandle_t, uint)
remove a preview by index starting at 0 (previews are sorted)
Declaration
public static bool RemoveItemPreview(UGCUpdateHandle_t handle, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| uint | index | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
RequestUGCDetails(PublishedFileId_t, uint)
DEPRECATED - Use CreateQueryUGCDetailsRequest call above instead!
Declaration
public static SteamAPICall_t RequestUGCDetails(PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| uint | unMaxAgeSeconds | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
RequestUGCDetailsAsync(PublishedFileId_t, uint)
Async version of RequestUGCDetails(PublishedFileId_t, uint).
Declaration
public static Task<SteamUGCRequestUGCDetailsResult_t> RequestUGCDetailsAsync(PublishedFileId_t nPublishedFileID, uint unMaxAgeSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| uint | unMaxAgeSeconds | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<SteamUGCRequestUGCDetailsResult_t> | The SteamUGCRequestUGCDetailsResult_t Steam reports once the call completes. |
SendQueryUGCRequest(UGCQueryHandle_t)
Send the query to Steam
Declaration
public static SteamAPICall_t SendQueryUGCRequest(UGCQueryHandle_t handle)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
SendQueryUGCRequestAsync(UGCQueryHandle_t)
Async version of SendQueryUGCRequest(UGCQueryHandle_t).
Declaration
public static Task<SteamUGCQueryCompleted_t> SendQueryUGCRequestAsync(UGCQueryHandle_t handle)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<SteamUGCQueryCompleted_t> | The SteamUGCQueryCompleted_t Steam reports once the call completes. |
SetAdminQuery(UGCUpdateHandle_t, bool)
admin queries return hidden items
Declaration
public static bool SetAdminQuery(UGCUpdateHandle_t handle, bool bAdminQuery)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| bool | bAdminQuery | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetAllowCachedResponse(UGCQueryHandle_t, uint)
Calls the Steamworks ISteamUGC::SetAllowCachedResponse method.
Declaration
public static bool SetAllowCachedResponse(UGCQueryHandle_t handle, uint unMaxAgeSeconds)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | unMaxAgeSeconds | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetAllowLegacyUpload(UGCUpdateHandle_t, bool)
use legacy upload for a single small file. The parameter to SetItemContent() should either be a directory with one file or the full path to the file. The file must also be less than 10MB in size.
Declaration
public static bool SetAllowLegacyUpload(UGCUpdateHandle_t handle, bool bAllowLegacyUpload)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| bool | bAllowLegacyUpload | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetCloudFileNameFilter(UGCQueryHandle_t, string)
Options only for querying user UGC
Declaration
public static bool SetCloudFileNameFilter(UGCQueryHandle_t handle, string pMatchCloudFileName)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| string | pMatchCloudFileName | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemContent(UGCUpdateHandle_t, string)
update item content from this local folder
Declaration
public static bool SetItemContent(UGCUpdateHandle_t handle, string pszContentFolder)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pszContentFolder | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemDescription(UGCUpdateHandle_t, string)
change the description of an UGC item
Declaration
public static bool SetItemDescription(UGCUpdateHandle_t handle, string pchDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchDescription | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemMetadata(UGCUpdateHandle_t, string)
change the metadata of an UGC item (max = k_cchDeveloperMetadataMax)
Declaration
public static bool SetItemMetadata(UGCUpdateHandle_t handle, string pchMetaData)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchMetaData | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemPreview(UGCUpdateHandle_t, string)
change preview image file for this item. pszPreviewFile points to local image file, which must be under 1MB in size
Declaration
public static bool SetItemPreview(UGCUpdateHandle_t handle, string pszPreviewFile)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pszPreviewFile | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemTags(UGCUpdateHandle_t, IList<string>, bool)
change the tags of an UGC item
Declaration
public static bool SetItemTags(UGCUpdateHandle_t updateHandle, IList<string> pTags, bool bAllowAdminTags = false)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | updateHandle | Passed through to |
| IList<string> | pTags | Passed through to |
| bool | bAllowAdminTags | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemTitle(UGCUpdateHandle_t, string)
change the title of an UGC item
Declaration
public static bool SetItemTitle(UGCUpdateHandle_t handle, string pchTitle)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchTitle | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemUpdateLanguage(UGCUpdateHandle_t, string)
specify the language of the title or description that will be set
Declaration
public static bool SetItemUpdateLanguage(UGCUpdateHandle_t handle, string pchLanguage)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchLanguage | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemVisibility(UGCUpdateHandle_t, ERemoteStoragePublishedFileVisibility)
change the visibility of an UGC item
Declaration
public static bool SetItemVisibility(UGCUpdateHandle_t handle, ERemoteStoragePublishedFileVisibility eVisibility)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| ERemoteStoragePublishedFileVisibility | eVisibility | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetItemsDisabledLocally(PublishedFileId_t[], uint, bool)
Sets whether the item should be disabled locally or not. This means that it will not be returned in GetSubscribedItems() by default.
Declaration
public static bool SetItemsDisabledLocally(PublishedFileId_t[] pvecPublishedFileIDs, uint unNumPublishedFileIDs, bool bDisabledLocally)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileIDs | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
| bool | bDisabledLocally | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetLanguage(UGCQueryHandle_t, string)
Calls the Steamworks ISteamUGC::SetLanguage method.
Declaration
public static bool SetLanguage(UGCQueryHandle_t handle, string pchLanguage)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| string | pchLanguage | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetMatchAnyTag(UGCQueryHandle_t, bool)
Options only for querying all UGC
Declaration
public static bool SetMatchAnyTag(UGCQueryHandle_t handle, bool bMatchAnyTag)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bMatchAnyTag | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetRankedByTrendDays(UGCQueryHandle_t, uint)
Calls the Steamworks ISteamUGC::SetRankedByTrendDays method.
Declaration
public static bool SetRankedByTrendDays(UGCQueryHandle_t handle, uint unDays)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | unDays | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetRequiredGameVersions(UGCUpdateHandle_t, string, string)
an empty string for either parameter means that it will match any version on that end of the range. This will only be applied if the actual content has been changed.
Declaration
public static bool SetRequiredGameVersions(UGCUpdateHandle_t handle, string pszGameBranchMin, string pszGameBranchMax)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pszGameBranchMin | Passed through to |
| string | pszGameBranchMax | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnAdditionalPreviews(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnAdditionalPreviews method.
Declaration
public static bool SetReturnAdditionalPreviews(UGCQueryHandle_t handle, bool bReturnAdditionalPreviews)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnAdditionalPreviews | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnChildren(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnChildren method.
Declaration
public static bool SetReturnChildren(UGCQueryHandle_t handle, bool bReturnChildren)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnChildren | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnKeyValueTags(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnKeyValueTags method.
Declaration
public static bool SetReturnKeyValueTags(UGCQueryHandle_t handle, bool bReturnKeyValueTags)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnKeyValueTags | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnLongDescription(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnLongDescription method.
Declaration
public static bool SetReturnLongDescription(UGCQueryHandle_t handle, bool bReturnLongDescription)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnLongDescription | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnMetadata(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnMetadata method.
Declaration
public static bool SetReturnMetadata(UGCQueryHandle_t handle, bool bReturnMetadata)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnMetadata | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnOnlyIDs(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnOnlyIDs method.
Declaration
public static bool SetReturnOnlyIDs(UGCQueryHandle_t handle, bool bReturnOnlyIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnOnlyIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnPlaytimeStats(UGCQueryHandle_t, uint)
Calls the Steamworks ISteamUGC::SetReturnPlaytimeStats method.
Declaration
public static bool SetReturnPlaytimeStats(UGCQueryHandle_t handle, uint unDays)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | unDays | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetReturnTotalOnly(UGCQueryHandle_t, bool)
Calls the Steamworks ISteamUGC::SetReturnTotalOnly method.
Declaration
public static bool SetReturnTotalOnly(UGCQueryHandle_t handle, bool bReturnTotalOnly)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| bool | bReturnTotalOnly | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetSearchText(UGCQueryHandle_t, string)
Calls the Steamworks ISteamUGC::SetSearchText method.
Declaration
public static bool SetSearchText(UGCQueryHandle_t handle, string pSearchText)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| string | pSearchText | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetSubscriptionsLoadOrder(PublishedFileId_t[], uint)
Set the local load order for these items. If there are any items not in the given list, they will sort by the time subscribed.
Declaration
public static bool SetSubscriptionsLoadOrder(PublishedFileId_t[] pvecPublishedFileIDs, uint unNumPublishedFileIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileIDs | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetTimeCreatedDateRange(UGCQueryHandle_t, uint, uint)
Calls the Steamworks ISteamUGC::SetTimeCreatedDateRange method.
Declaration
public static bool SetTimeCreatedDateRange(UGCQueryHandle_t handle, uint rtStart, uint rtEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | rtStart | Passed through to |
| uint | rtEnd | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetTimeUpdatedDateRange(UGCQueryHandle_t, uint, uint)
Calls the Steamworks ISteamUGC::SetTimeUpdatedDateRange method.
Declaration
public static bool SetTimeUpdatedDateRange(UGCQueryHandle_t handle, uint rtStart, uint rtEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCQueryHandle_t | handle | Passed through to |
| uint | rtStart | Passed through to |
| uint | rtEnd | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
SetUserItemVote(PublishedFileId_t, bool)
Steam Workshop Consumer API
Declaration
public static SteamAPICall_t SetUserItemVote(PublishedFileId_t nPublishedFileID, bool bVoteUp)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| bool | bVoteUp | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
SetUserItemVoteAsync(PublishedFileId_t, bool)
Async version of SetUserItemVote(PublishedFileId_t, bool).
Declaration
public static Task<SetUserItemVoteResult_t> SetUserItemVoteAsync(PublishedFileId_t nPublishedFileID, bool bVoteUp)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
| bool | bVoteUp | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<SetUserItemVoteResult_t> | The SetUserItemVoteResult_t Steam reports once the call completes. |
ShowWorkshopEULA()
Show the app's latest Workshop EULA to the user in an overlay window, where they can accept it or not
Declaration
public static bool ShowWorkshopEULA()
Returns
| Type | Description |
|---|---|
| bool | The value |
StartItemUpdate(AppId_t, PublishedFileId_t)
start an UGC item update. Set changed properties before commiting update with CommitItemUpdate()
Declaration
public static UGCUpdateHandle_t StartItemUpdate(AppId_t nConsumerAppId, PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| AppId_t | nConsumerAppId | Passed through to |
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| UGCUpdateHandle_t | The value |
StartPlaytimeTracking(PublishedFileId_t[], uint)
usage tracking
Declaration
public static SteamAPICall_t StartPlaytimeTracking(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
StartPlaytimeTrackingAsync(PublishedFileId_t[], uint)
Async version of StartPlaytimeTracking(PublishedFileId_t[], uint).
Declaration
public static Task<StartPlaytimeTrackingResult_t> StartPlaytimeTrackingAsync(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<StartPlaytimeTrackingResult_t> | The StartPlaytimeTrackingResult_t Steam reports once the call completes. |
StopPlaytimeTracking(PublishedFileId_t[], uint)
Calls the Steamworks ISteamUGC::StopPlaytimeTracking method.
Declaration
public static SteamAPICall_t StopPlaytimeTracking(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
StopPlaytimeTrackingAsync(PublishedFileId_t[], uint)
Async version of StopPlaytimeTracking(PublishedFileId_t[], uint).
Declaration
public static Task<StopPlaytimeTrackingResult_t> StopPlaytimeTrackingAsync(PublishedFileId_t[] pvecPublishedFileID, uint unNumPublishedFileIDs)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t[] | pvecPublishedFileID | Passed through to |
| uint | unNumPublishedFileIDs | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<StopPlaytimeTrackingResult_t> | The StopPlaytimeTrackingResult_t Steam reports once the call completes. |
StopPlaytimeTrackingForAllItems()
Calls the Steamworks ISteamUGC::StopPlaytimeTrackingForAllItems method.
Declaration
public static SteamAPICall_t StopPlaytimeTrackingForAllItems()
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
StopPlaytimeTrackingForAllItemsAsync()
Async version of StopPlaytimeTrackingForAllItems().
Declaration
public static Task<StopPlaytimeTrackingResult_t> StopPlaytimeTrackingForAllItemsAsync()
Returns
| Type | Description |
|---|---|
| Task<StopPlaytimeTrackingResult_t> | The StopPlaytimeTrackingResult_t Steam reports once the call completes. |
SubmitItemUpdate(UGCUpdateHandle_t, string)
commit update process started with StartItemUpdate()
Declaration
public static SteamAPICall_t SubmitItemUpdate(UGCUpdateHandle_t handle, string pchChangeNote)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchChangeNote | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
SubmitItemUpdateAsync(UGCUpdateHandle_t, string)
Async version of SubmitItemUpdate(UGCUpdateHandle_t, string).
Declaration
public static Task<SubmitItemUpdateResult_t> SubmitItemUpdateAsync(UGCUpdateHandle_t handle, string pchChangeNote)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| string | pchChangeNote | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<SubmitItemUpdateResult_t> | The SubmitItemUpdateResult_t Steam reports once the call completes. |
SubscribeItem(PublishedFileId_t)
subscribe to this item, will be installed ASAP
Declaration
public static SteamAPICall_t SubscribeItem(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
SubscribeItemAsync(PublishedFileId_t)
Async version of SubscribeItem(PublishedFileId_t).
Declaration
public static Task<RemoteStorageSubscribePublishedFileResult_t> SubscribeItemAsync(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<RemoteStorageSubscribePublishedFileResult_t> | The RemoteStorageSubscribePublishedFileResult_t Steam reports once the call completes. |
SuspendDownloads(bool)
SuspendDownloads( true ) will suspend all workshop downloads until SuspendDownloads( false ) is called or the game ends
Declaration
public static void SuspendDownloads(bool bSuspend)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | bSuspend | Passed through to |
UnsubscribeItem(PublishedFileId_t)
unsubscribe from this item, will be uninstalled after game quits
Declaration
public static SteamAPICall_t UnsubscribeItem(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| SteamAPICall_t | The value |
UnsubscribeItemAsync(PublishedFileId_t)
Async version of UnsubscribeItem(PublishedFileId_t).
Declaration
public static Task<RemoteStorageUnsubscribePublishedFileResult_t> UnsubscribeItemAsync(PublishedFileId_t nPublishedFileID)
Parameters
| Type | Name | Description |
|---|---|---|
| PublishedFileId_t | nPublishedFileID | Passed through to |
Returns
| Type | Description |
|---|---|
| Task<RemoteStorageUnsubscribePublishedFileResult_t> | The RemoteStorageUnsubscribePublishedFileResult_t Steam reports once the call completes. |
UpdateItemPreviewFile(UGCUpdateHandle_t, uint, string)
updates an existing preview file for this item. pszPreviewFile points to local file, which must be under 1MB in size
Declaration
public static bool UpdateItemPreviewFile(UGCUpdateHandle_t handle, uint index, string pszPreviewFile)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| string | pszPreviewFile | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |
UpdateItemPreviewVideo(UGCUpdateHandle_t, uint, string)
updates an existing preview video for this item
Declaration
public static bool UpdateItemPreviewVideo(UGCUpdateHandle_t handle, uint index, string pszVideoID)
Parameters
| Type | Name | Description |
|---|---|---|
| UGCUpdateHandle_t | handle | Passed through to |
| uint | index | Passed through to |
| string | pszVideoID | Passed through to |
Returns
| Type | Description |
|---|---|
| bool | The value |