Class Snippets
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Assembly: Unity.Services.Ugc.DocCodeSamples.dll
Syntax
public class Snippets : MonoBehaviour
Methods
ApproveContentAsync(string)
Declaration
public void ApproveContentAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
ConvertContentThumbnailToSprite(Content)
Declaration
public Sprite ConvertContentThumbnailToSprite(Content content)
Parameters
Type |
Name |
Description |
Content |
content |
|
Returns
CreateContentVersionAsync(string)
Declaration
public Task<Content> CreateContentVersionAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
Returns
CreateNewContentAsync()
Declaration
public Task<Content> CreateNewContentAsync()
Returns
CreateNewRepresentationAsync(Content)
Declaration
public Task<Representation> CreateNewRepresentationAsync(Content content)
Parameters
Type |
Name |
Description |
Content |
content |
|
Returns
CreateNewRepresentationVersionAsync(Content, Representation)
Declaration
public Task<RepresentationVersion> CreateNewRepresentationVersionAsync(Content content, Representation representation)
Parameters
Returns
DeleteContentAsync(string)
Declaration
public void DeleteContentAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
DeleteRepresentationAsync(string, string)
Declaration
public void DeleteRepresentationAsync(string contentId, string representationId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
string |
representationId |
|
GetContentByIdAsync(string)
Declaration
public Task<Content> GetContentByIdAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
Returns
GetContentIdAsync(string)
Declaration
public Task<string> GetContentIdAsync(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
GetContentTrendsAsync()
Declaration
public Task<List<Content>> GetContentTrendsAsync()
Returns
GetContentsListAsync()
Declaration
public Task<List<Content>> GetContentsListAsync()
Returns
GetContentsListByPageAsync(int, int)
Declaration
public Task<List<Content>> GetContentsListByPageAsync(int pageIndex, int contentPerPage)
Parameters
Type |
Name |
Description |
int |
pageIndex |
|
int |
contentPerPage |
|
Returns
GetContentsListBySearchAsync(string)
Declaration
public Task<List<Content>> GetContentsListBySearchAsync(string searchFilter)
Parameters
Type |
Name |
Description |
string |
searchFilter |
|
Returns
GetContentsListBySearchWithReportAsync(string)
Declaration
public Task<List<Content>> GetContentsListBySearchWithReportAsync(string searchFilter)
Parameters
Type |
Name |
Description |
string |
searchFilter |
|
Returns
GetPlayerContentAsync()
Declaration
public Task<List<Content>> GetPlayerContentAsync()
Returns
GetPreviewThumbnail()
Declaration
public void GetPreviewThumbnail()
GetRepresentationByIdAsync(string, string)
Declaration
public Task<Representation> GetRepresentationByIdAsync(string contentId, string representationId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
string |
representationId |
|
Returns
GetRepresentationVersionsListAsync(string, string)
Declaration
public Task<List<RepresentationVersion>> GetRepresentationVersionsListAsync(string contentId, string representationId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
string |
representationId |
|
Returns
GetRepresentationsListAsync(string)
Declaration
public Task<List<Representation>> GetRepresentationsListAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
Returns
GetSubscribedContentListAsync()
Declaration
public Task<List<Subscription>> GetSubscribedContentListAsync()
Returns
Declaration
public Task<List<Tag>> GetTagsListAsync()
Returns
RejectContentAsync(string)
Declaration
public void RejectContentAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
ReportContentAsync(string)
Declaration
public void ReportContentAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
SearchContentModerationAsync()
Declaration
public Task<List<Content>> SearchContentModerationAsync()
Returns
SearchRepresentationsInProjectAsync(string)
Declaration
public Task<List<Representation>> SearchRepresentationsInProjectAsync(string searchFilter)
Parameters
Type |
Name |
Description |
string |
searchFilter |
|
Returns
SignInAnonymouslyAsync()
Declaration
public Task SignInAnonymouslyAsync()
Returns
SignInWithAppleAsync(string)
Declaration
public Task SignInWithAppleAsync(string idToken)
Parameters
Type |
Name |
Description |
string |
idToken |
|
Returns
SubmitUserContentRatingAsync(string, float)
Declaration
public void SubmitUserContentRatingAsync(string contentId, float rating)
Parameters
SubscribeToContentAsync(string)
Declaration
public void SubscribeToContentAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
UnsubscribeFromContentAsync(string)
Declaration
public void UnsubscribeFromContentAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
UpdateContentDetailsAsync(string)
Declaration
public Task<Content> UpdateContentDetailsAsync(string contentId)
Parameters
Type |
Name |
Description |
string |
contentId |
|
Returns
UpdateRepresentationAsync(Content, Representation)
Declaration
public Task<Representation> UpdateRepresentationAsync(Content content, Representation representation)
Parameters
Returns