v3.0.1
Latest
2020.3+
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[3.0.1] - 2024-04-25
- Added Apple privacy manifest to comply with Apple's new privacy requirements. More details on how the Unity Engine supports this can be found here.
- Upgraded
com.unity.services.core
from 1.9.0 to 1.12.5 to include their Apple privacy manifest. - Upgraded
com.unity.services.authentication
from 2.5.0 to 3.3.1 to include their Apple privacy manifest.
[3.0.0] - 2023-11-16
Changed
GetTagsAsync
changed to only returns tags for the current environment.- New or updated public content will now be
public
instead ofpublicGlobal
[2.0.0] - 2023-10-20
Added
- Added
ContentVisibility
options:public
andunlisted
Changed
- Deprecated
ContentVisibility
options:publicGame
andpublicGlobal
. Usepublic
instead. - Upgraded
com.unity.services.core
from 1.7.1 to 1.9.0 - Upgraded
com.unity.services.authentication
from 2.4.0 to 2.5.0 - Updated Quick Start Guide and API documentation.
Removed
BREAKING CHANGES
- Removed
OwnerAccountId
fromContentDTO
model. - Removed
ContentDownloadStatistics
fromContentStatistics
model. - Removed
Subscribers
fromContentStatistics
model. - Removed
ContentReportStatistics
fromContentStatistics
model. - Removed
ContentRatingStatistics
fromContentStatistics
model. - Removed
ContentPortalVisitStatistics
fromContentStatistics
model.
[1.0.0-pre.10] - 2023-04-19
Changed
- License update
- Fixed compile error in Content Browser sample when building the project
[1.0.0-pre.9] - 2023-04-18
Changed
- Changed
GetContentTrendsArgs
to match other model classes - Updated
SearchContentSortBy
with the correct fields for content statistics - Updated the Content Browser sample with the latest updates/fixes
[1.0.0-pre.8] - 2023-04-12
Added
- Added a content browser prefab that can be imported as sample from the package manager.
- Added
BaseSearchArgs
to simplify all RequestArgs class used in search requests and also reorganized SortBys enums. - Added
GetContentTrendsAsync
inWrappedUgcService
andGetContentTrendsArgs
. - Added
DiscoveryTags
inContent
model. - Added
RatingsAverage
,RatingsCount
,DownloadsCount
,SubscriptionsCount
andReportsCount
toContentStatistics
. ### Changed - Changed
Owner
name toCreator
across the SDK. - Deprecate
Downloads
,Subscribers
,Reports
,Ratings
,PortalVisits
andRatingsAverage
fromContentStatistics
. ### Removed BREAKING CHANGES - Removed
ReportsCount
fromContent
model. - Removed
ReportType
fromGetContentsArgs
.
[1.0.0-pre.7] - 2023-02-16
Added
- Added
GetPlayerContentsAsync
andGetPlayerContentsArgs
to exposeSearchPlayerContentAsync
from ContentAPI. - Added
PagedResults<T>
for search APIs results. - Added
ApproveContentAsync
,RejectContentAsync
andSearchContentModerationAsync
from the ModerationAPI. ### Changed BREAKING CHANGES - Changed
GetContentsAsync
,GetContentVersionsAsync
,GetRepresentationsAsync
,GetRepresentationVersionsAsync
,GetSubscriptionsAsync
andSearchRepresentationsAsync
return type toPagedResult<T>
to include pagination information. - Moved
Tag
,Subscription
,RepresentationVersion
,RepresentationTag
,Representation
,ContentVersion
,ContentUserRating
andContent
out of the namespace Unity.Services.Ugc.Models into Unity.Services.Ugc. - Unity.Services.Ugc.Models namespace was removed.
- Changed return value of
ReportContentAsync
to return the reported content.
[1.0.0-pre.6] - 2022-11-16
Added
- Added
ContentStatistics
, which includesContentDownloadStatistics
,Subscribers
,ContentReportStatistics
,ContentRatingStatistics
andContentPortalVisitStatistics
BREAKING CHANGES - Replaced
ContentDownloadStatistics
forContentStatistics
inContent
[1.0.0-pre.5] - 2022-11-10
Added
- Added
IncludeStatistics
field inGetContentArg
- Added ContentDownloadStats
DownlodStatistics
inContent
model BREAKING CHANGES - Added
IncludeTotal
field inGetContentsArgs
,GetContentVersionArgs
,GetRepresentationArgs
,GetRepresentationVersionArgs
,GetSubscriptionsArgs
andSearchRepresentationArgs
.
[1.0.0-pre.4] - 2022-09-29
Added
- Added
CustomId
andMetadata
fieldsCreateContentArgs
for content customization - Added
GetContentVersionsAsync
in order to retrieve all the content versions of a given content - Added Representation API (Create, Update, Delete, Search) to handle different representations of a given content
Changed
- Updated the license.
- Thumbnail is now optional with
CreateContentVersionAsync
- Updated Core dependency to 1.4.0 BREAKING CHANGES
- Removed thumbnail parameter from
CreateContentArgs
constructor as it's now optional. - Changed minimum supported version from 2019.4 to 2020.3
[1.0.0-pre.3] - 2022-05-02
Changed
BREAKING CHANGES
- Moved
SetBasePath
toUgcServiceSDKUtils.SetBasePath
- Moved all
CreateContentAsync
parameters to the classCreateContentArgs
- Renamed
GetContentOptions
toGetContentArgs
and movedcontentId
parameter into that class. - Renamed
TagDTO
toTag
- Renamed
ContentUserRatingDTO
toContentUserRating
- Renamed
UgcServiceSDKUtils
toUgcServiceSdkUtils
[1.0.0-pre.2] - 2022-04-06
Added
- Added quickstart documentation to provide enough information to start using UGC package.
[1.0.0-pre.1] - 2022-04-01
Added
- Added
UgcException
exception which is thrown by UGC Api methods to better understand why a request failed. List of error codes can be found withinUgcErrorCodes
. - Added
ratingCount
andsubscriptionCount
fields toContentDTO
to indicate how many ratings and subscribers a content has. - Added
UpdateContentDetailsAsync
to update the content metadata after it has been created - Added
ReportContentAsync
to let the end-user report a specific content to moderation - Added
CreateSubscriptionAsync
to subscribe the current user to a content - Added
DeleteSubscriptionAsync
to remove the current user's subscription to a content (if it exists) - Added
IsSubscribedToAsync
to check if the current user is subscribed or not to a content - Added
GetSubscriptionsAsync
to fetch the current user subscriptions list (results can be sorted/filtered) - Added
DownloadContentDataAsync
to get the data (asset/thumnbnail) of an already fetched content
Changed
- Added visibility option to
CreateContentAsync
, by passing true or false to the parameterisPublic
users can create public or private content. - Added
enabled
field toProjectDTO
to see if a project is publicly visible in the UGC portal - Added
AssetUploadStatus
andThumbnailUploadStatus
toContentDTO
to show the status of their upload after a call toCreateContent
andCreateContentVersion
- Added
GetContentOptions
toGetContent
to be able to download the data and the thumbnail with the same call
BREAKING CHANGES
- Renamed
UGC
toUgcService
. Access to the service is now done throughUgcService.Instance
. - Changed
UgcService.Instance
to returnIUgcService
instead ofWrappedUGCService
. - Changed
WrappedUGCService
visibility tointernal
and renamed toWrappedUgcService
. - Renamed
GetContents
toGetContentsAsync
- Changed
GetContentsAsync
signature, now all details of the request need to be added through an instance ofGetContentsArgs
. ExposedOffset
andLimit
fields and also addedAddSortBy
method making the search request more complete. - Renamed
GetContent
toGetContentAsync
- Renamed
CreateContent
toCreateContentAsync
- Renamed
CreateContentVersion
toCreateContentVersionAsync
- Renamed
DeleteContent
toDeleteContentAsync
- Renamed
GetTags
toGetTagsAsync
- Renamed
GetUserContentRating
toGetUserContentRatingAsync
- Renamed
SubmitUserContentRating
toSubmitUserContentRatingAsync
- Refactored
TagDTO
to only haveid
andname
fields (id
was previously an int and is now a string).CreateContentAsync
was updated to reflect the change, the required type is nowList<string>
for itstags
parameter. - Renamed
optimisticContentDTO
fromContentDTO
tocontent
- Changed
ContentDTO
toContent
.ThumbnailUrl
andDownloadUrl
were removed.Content
hasDownloadedThumbnail
andDownloadedContent
fields that will be filled with the corresponding data through eitherGetContent
withGetContentOptions
or withDownloadContentDataAsync
- Changed
SubscriptionDTO
toSubscription
- Changed
VisibilityOption
toContentVisibility
- Changed
ReviewRuleOptions
toProjectReviewRule
- Changed asset and thumbnail upload status enum to
ContentUploadStatus
[0.0.3-preview] - 2022-02-18
Added
- Added Tag support to
ContentDTO
. You can useUGC.Instance.GetTags
to fetch all tags of a project. Tags are labels users can add to a content to help categorize it. - Added
UGC.Instance.GetUserContentRating
to get the rating a player gave to a specific content. - Added MD5 content hashes of thumbnail
thumbnailMd5Hash
and contentcontentMd5Hash
toContentDTO
. A hash changes whenever the content of its file changes and can help you cache the data more efficiently. - Added a boolean flag
IsUserSubscribed
toContentDTO
to indicate whether or not the current player is subscribed to that content.
Changed
BREAKING CHANGES
- Changed
UGC.Instance.CreateContent
to streamline the content creation process. It now returns an eventually consistentContentDTO
containing the upload URLs to the thumbnail and content location; it will not show up in search or in GetContents until both items are done being uploaded. - Changed
UGC.Instance.CreateContentVersion
which now acts the same way asUGC.Instance.CreateContent
but for a new version of a content. - Renamed
GetContent
toGetContents
for the version returning all the contents. - Removed the
projectId
andenvironmentId
parameters from all API methods. It now uses the project and environment the player is logged in to. - Changed how to override the Environment used by the API, use
InitializationOptions.SetEnvironmentName
to specify the name, rather than the id of the environment you want to use. - Renamed
ContentDTO.ContentId
toContentDTO.Id
. ContentDTO.ReportsCount
is now null.
Bugfixes
- Fixed a bug which caused the API to become unresponsive after two hours.
[0.0.2-preview] - 2022-01-25
Bugfixes
- Fixed a bug which caused content creation to fail when using a Unity project environment that is not the default one.
- Fixed a bug which caused content from all environments to show up when searching in specific environment.
[0.0.1-preview] - 2022-01-17
This is the first release of com.unity.services.ugc.
- Create a content
- Create a content version (upload)
- Get the latest version of a content