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.corefrom 1.9.0 to 1.12.5 to include their Apple privacy manifest. - Upgraded
com.unity.services.authenticationfrom 2.5.0 to 3.3.1 to include their Apple privacy manifest.
[3.0.0] - 2023-11-16
Changed
GetTagsAsyncchanged to only returns tags for the current environment.- New or updated public content will now be
publicinstead ofpublicGlobal
[2.0.0] - 2023-10-20
Added
- Added
ContentVisibilityoptions:publicandunlisted
Changed
- Deprecated
ContentVisibilityoptions:publicGameandpublicGlobal. Usepublicinstead. - Upgraded
com.unity.services.corefrom 1.7.1 to 1.9.0 - Upgraded
com.unity.services.authenticationfrom 2.4.0 to 2.5.0 - Updated Quick Start Guide and API documentation.
Removed
BREAKING CHANGES
- Removed
OwnerAccountIdfromContentDTOmodel. - Removed
ContentDownloadStatisticsfromContentStatisticsmodel. - Removed
SubscribersfromContentStatisticsmodel. - Removed
ContentReportStatisticsfromContentStatisticsmodel. - Removed
ContentRatingStatisticsfromContentStatisticsmodel. - Removed
ContentPortalVisitStatisticsfromContentStatisticsmodel.
[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
GetContentTrendsArgsto match other model classes - Updated
SearchContentSortBywith 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
BaseSearchArgsto simplify all RequestArgs class used in search requests and also reorganized SortBys enums. - Added
GetContentTrendsAsyncinWrappedUgcServiceandGetContentTrendsArgs. - Added
DiscoveryTagsinContentmodel. - Added
RatingsAverage,RatingsCount,DownloadsCount,SubscriptionsCountandReportsCounttoContentStatistics.
Changed
- Changed
Ownername toCreatoracross the SDK. - Deprecate
Downloads,Subscribers,Reports,Ratings,PortalVisitsandRatingsAveragefromContentStatistics.
Removed
BREAKING CHANGES
- Removed
ReportsCountfromContentmodel. - Removed
ReportTypefromGetContentsArgs.
[1.0.0-pre.7] - 2023-02-16
Added
- Added
GetPlayerContentsAsyncandGetPlayerContentsArgsto exposeSearchPlayerContentAsyncfrom ContentAPI. - Added
PagedResults<T>for search APIs results. - Added
ApproveContentAsync,RejectContentAsyncandSearchContentModerationAsyncfrom the ModerationAPI.
Changed
BREAKING CHANGES
- Changed
GetContentsAsync,GetContentVersionsAsync,GetRepresentationsAsync,GetRepresentationVersionsAsync,GetSubscriptionsAsyncandSearchRepresentationsAsyncreturn type toPagedResult<T>to include pagination information. - Moved
Tag,Subscription,RepresentationVersion,RepresentationTag,Representation,ContentVersion,ContentUserRatingandContentout of the namespace Unity.Services.Ugc.Models into Unity.Services.Ugc. - Unity.Services.Ugc.Models namespace was removed.
- Changed return value of
ReportContentAsyncto return the reported content.
[1.0.0-pre.6] - 2022-11-16
Added
- Added
ContentStatistics, which includesContentDownloadStatistics,Subscribers,ContentReportStatistics,ContentRatingStatisticsandContentPortalVisitStatisticsBREAKING CHANGES - Replaced
ContentDownloadStatisticsforContentStatisticsinContent
[1.0.0-pre.5] - 2022-11-10
Added
- Added
IncludeStatisticsfield inGetContentArg - Added ContentDownloadStats
DownlodStatisticsinContentmodel BREAKING CHANGES - Added
IncludeTotalfield inGetContentsArgs,GetContentVersionArgs,GetRepresentationArgs,GetRepresentationVersionArgs,GetSubscriptionsArgsandSearchRepresentationArgs.
[1.0.0-pre.4] - 2022-09-29
Added
- Added
CustomIdandMetadatafieldsCreateContentArgsfor content customization - Added
GetContentVersionsAsyncin 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
CreateContentArgsconstructor 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
SetBasePathtoUgcServiceSDKUtils.SetBasePath - Moved all
CreateContentAsyncparameters to the classCreateContentArgs - Renamed
GetContentOptionstoGetContentArgsand movedcontentIdparameter into that class. - Renamed
TagDTOtoTag - Renamed
ContentUserRatingDTOtoContentUserRating - Renamed
UgcServiceSDKUtilstoUgcServiceSdkUtils
[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
UgcExceptionexception which is thrown by UGC Api methods to better understand why a request failed. List of error codes can be found withinUgcErrorCodes. - Added
ratingCountandsubscriptionCountfields toContentDTOto indicate how many ratings and subscribers a content has. - Added
UpdateContentDetailsAsyncto update the content metadata after it has been created - Added
ReportContentAsyncto let the end-user report a specific content to moderation - Added
CreateSubscriptionAsyncto subscribe the current user to a content - Added
DeleteSubscriptionAsyncto remove the current user's subscription to a content (if it exists) - Added
IsSubscribedToAsyncto check if the current user is subscribed or not to a content - Added
GetSubscriptionsAsyncto fetch the current user subscriptions list (results can be sorted/filtered) - Added
DownloadContentDataAsyncto get the data (asset/thumnbnail) of an already fetched content
Changed
- Added visibility option to
CreateContentAsync, by passing true or false to the parameterisPublicusers can create public or private content. - Added
enabledfield toProjectDTOto see if a project is publicly visible in the UGC portal - Added
AssetUploadStatusandThumbnailUploadStatustoContentDTOto show the status of their upload after a call toCreateContentandCreateContentVersion - Added
GetContentOptionstoGetContentto be able to download the data and the thumbnail with the same call
BREAKING CHANGES
- Renamed
UGCtoUgcService. Access to the service is now done throughUgcService.Instance. - Changed
UgcService.Instanceto returnIUgcServiceinstead ofWrappedUGCService. - Changed
WrappedUGCServicevisibility tointernaland renamed toWrappedUgcService. - Renamed
GetContentstoGetContentsAsync - Changed
GetContentsAsyncsignature, now all details of the request need to be added through an instance ofGetContentsArgs. ExposedOffsetandLimitfields and also addedAddSortBymethod making the search request more complete. - Renamed
GetContenttoGetContentAsync - Renamed
CreateContenttoCreateContentAsync - Renamed
CreateContentVersiontoCreateContentVersionAsync - Renamed
DeleteContenttoDeleteContentAsync - Renamed
GetTagstoGetTagsAsync - Renamed
GetUserContentRatingtoGetUserContentRatingAsync - Renamed
SubmitUserContentRatingtoSubmitUserContentRatingAsync - Refactored
TagDTOto only haveidandnamefields (idwas previously an int and is now a string).CreateContentAsyncwas updated to reflect the change, the required type is nowList<string>for itstagsparameter. - Renamed
optimisticContentDTOfromContentDTOtocontent - Changed
ContentDTOtoContent.ThumbnailUrlandDownloadUrlwere removed.ContenthasDownloadedThumbnailandDownloadedContentfields that will be filled with the corresponding data through eitherGetContentwithGetContentOptionsor withDownloadContentDataAsync - Changed
SubscriptionDTOtoSubscription - Changed
VisibilityOptiontoContentVisibility - Changed
ReviewRuleOptionstoProjectReviewRule - 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.GetTagsto fetch all tags of a project. Tags are labels users can add to a content to help categorize it. - Added
UGC.Instance.GetUserContentRatingto get the rating a player gave to a specific content. - Added MD5 content hashes of thumbnail
thumbnailMd5Hashand contentcontentMd5HashtoContentDTO. A hash changes whenever the content of its file changes and can help you cache the data more efficiently. - Added a boolean flag
IsUserSubscribedtoContentDTOto indicate whether or not the current player is subscribed to that content.
Changed
BREAKING CHANGES
- Changed
UGC.Instance.CreateContentto streamline the content creation process. It now returns an eventually consistentContentDTOcontaining 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.CreateContentVersionwhich now acts the same way asUGC.Instance.CreateContentbut for a new version of a content. - Renamed
GetContenttoGetContentsfor the version returning all the contents. - Removed the
projectIdandenvironmentIdparameters 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.SetEnvironmentNameto specify the name, rather than the id of the environment you want to use. - Renamed
ContentDTO.ContentIdtoContentDTO.Id. ContentDTO.ReportsCountis 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