Workshop Item
Like what your seeing?
Support us as a GitHub Sponsor and get instant access to all our assets, exclusive tools and assets, escalated support and issue tracking and our gratitude. These articles are made possible by our GitHub Sponsors ... become a sponsor today!
Introduction
Returned by UGC Query and related tools and represents the data of a UGC Item aka Workshop Item.
Fields and Attributes
Title
The title of the item
Description
The description of the item
Consumer App
The app this item is meant to be used by
FileId
The Steam native ID for this item's "file"
Owner
The user that "owns" this item, typically the "author"
Time Created
The time stamp this item was created on
Time Updated
The time stamp of this item's last update
Up Votes
The current number of up votes this item has
Down Votes
The current number of down votes this item has
Vote Score
The vote score applied to this item
Is Banned
Has this item been banned
Is Tags Truncated
Is the tags list on this item truncated for length
Is Subscribed
Is the local user subscribed to this item
Is Needs Update
Does this item need to be updated
Is Installed
Is this item currently installed
Is Downloading
is this item currently downloading
Is Download Pending
Is this item pending download
DownloadCompletion
If this item is downloading how far along is it
File Size
The "file size" as reported by Valve for this item
Folder Path
The directory where this items content is located
State Flags
The state flags associated with this item, see Valve's Steam API documentation for more details.
Visibility
The visibility status of the item, see Valve's Steam API documentation for more details.
Tags
The array of tags if any, this causes a new array to be created each time its read so cash the value and work with the cash where needed.
Preview Image
The main preview image if known
Preview Image Location
The location of the preview image's file if known
Source Item Details
The Steam native details item
Metadata
The metadata for the item if any and if included in the reading query
Key Value Tags
The key value tags associated with the item if any and if known
Events
Preview Image Updated
A standard UnityEvent which is invoked when/if the items preview image is updated and reported from Steam or when the file is loaded from disk if known. This can be used to trigger an update of display of the item preview image.
Methods
Get
WorkshopItem objects are "get" by query, the Get methods are static methods that help you create a UgcQuery to fetch specific items. This is just a shortcut to the UgcQuery get methods, see UgcQuery documentation for more details.
Download Preview Image
Starts the download of the preview image
Download Item
Typically Steam will download the item when it's convenient to do so and won't usually download while a game is running. High Priority flag simply indicates that Steam should download the item as soon as it can.
Subscribe
Causes the item to be marked as subscribed, the callback indicates the results
Unsubscribe
Causes the item to be marked as unsubscribed, the callback indicates the results
Set Vote
Sets the user's vote for this item, the callback indicates the results
Update Methods
If the local user is the owner of the item they can modify the items values, the following methods are only applicable to the item's owners and will not work as intended for any other user.
Update Title
Use to update the item's title, the callback will indicate the results of the operation, the bool indicates error, for example:
Update Title has a single overload where you can indicate the language associated with the title.
Update Description
Use to update the item's description, the callback will indicate the results of the operation, the bool indicates error, for example:
Update Description has a single overload where you can indicate the language associated with the title.
Update Content
This can be used to update the preview image or the contents of the items folder
The callback will indicate the results or error if any
Update Metadata
Update the metadata linked to the object
The callback will indicate the results or error if any
Update Tags
Update the tags linked to the object
The callback will indicate the results or error if any
Delete Item
Requests the delet of this item
The callback will indicate the results or error if any
Last updated