docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Snippets

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    Snippets
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent<T>(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(bool)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(bool)
    Component.GetComponentsInChildren<T>(bool, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type, bool)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>(bool)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(bool)
    Component.GetComponentsInParent<T>(bool, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(string)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Global Namespace
    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
    Type Description
    Sprite

    CreateContentVersionAsync(string)

    Declaration
    public Task<Content> CreateContentVersionAsync(string contentId)
    Parameters
    Type Name Description
    string contentId
    Returns
    Type Description
    Task<Content>

    CreateNewContentAsync()

    Declaration
    public Task<Content> CreateNewContentAsync()
    Returns
    Type Description
    Task<Content>

    CreateNewRepresentationAsync(Content)

    Declaration
    public Task<Representation> CreateNewRepresentationAsync(Content content)
    Parameters
    Type Name Description
    Content content
    Returns
    Type Description
    Task<Representation>

    CreateNewRepresentationVersionAsync(Content, Representation)

    Declaration
    public Task<RepresentationVersion> CreateNewRepresentationVersionAsync(Content content, Representation representation)
    Parameters
    Type Name Description
    Content content
    Representation representation
    Returns
    Type Description
    Task<RepresentationVersion>

    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
    Type Description
    Task<Content>

    GetContentIdAsync(string)

    Declaration
    public Task<string> GetContentIdAsync(string name)
    Parameters
    Type Name Description
    string name
    Returns
    Type Description
    Task<string>

    GetContentTrendsAsync()

    Declaration
    public Task<List<Content>> GetContentTrendsAsync()
    Returns
    Type Description
    Task<List<Content>>

    GetContentsListAsync()

    Declaration
    public Task<List<Content>> GetContentsListAsync()
    Returns
    Type Description
    Task<List<Content>>

    GetContentsListByPageAsync(int, int)

    Declaration
    public Task<List<Content>> GetContentsListByPageAsync(int pageIndex, int contentPerPage)
    Parameters
    Type Name Description
    int pageIndex
    int contentPerPage
    Returns
    Type Description
    Task<List<Content>>

    GetContentsListBySearchAsync(string)

    Declaration
    public Task<List<Content>> GetContentsListBySearchAsync(string searchFilter)
    Parameters
    Type Name Description
    string searchFilter
    Returns
    Type Description
    Task<List<Content>>

    GetContentsListBySearchWithReportAsync(string)

    Declaration
    public Task<List<Content>> GetContentsListBySearchWithReportAsync(string searchFilter)
    Parameters
    Type Name Description
    string searchFilter
    Returns
    Type Description
    Task<List<Content>>

    GetPlayerContentAsync()

    Declaration
    public Task<List<Content>> GetPlayerContentAsync()
    Returns
    Type Description
    Task<List<Content>>

    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
    Type Description
    Task<Representation>

    GetRepresentationVersionsListAsync(string, string)

    Declaration
    public Task<List<RepresentationVersion>> GetRepresentationVersionsListAsync(string contentId, string representationId)
    Parameters
    Type Name Description
    string contentId
    string representationId
    Returns
    Type Description
    Task<List<RepresentationVersion>>

    GetRepresentationsListAsync(string)

    Declaration
    public Task<List<Representation>> GetRepresentationsListAsync(string contentId)
    Parameters
    Type Name Description
    string contentId
    Returns
    Type Description
    Task<List<Representation>>

    GetSubscribedContentListAsync()

    Declaration
    public Task<List<Subscription>> GetSubscribedContentListAsync()
    Returns
    Type Description
    Task<List<Subscription>>

    GetTagsListAsync()

    Declaration
    public Task<List<Tag>> GetTagsListAsync()
    Returns
    Type Description
    Task<List<Tag>>

    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
    Type Description
    Task<List<Content>>

    SearchRepresentationsInProjectAsync(string)

    Declaration
    public Task<List<Representation>> SearchRepresentationsInProjectAsync(string searchFilter)
    Parameters
    Type Name Description
    string searchFilter
    Returns
    Type Description
    Task<List<Representation>>

    SignInAnonymouslyAsync()

    Declaration
    public Task SignInAnonymouslyAsync()
    Returns
    Type Description
    Task

    SignInWithAppleAsync(string)

    Declaration
    public Task SignInWithAppleAsync(string idToken)
    Parameters
    Type Name Description
    string idToken
    Returns
    Type Description
    Task

    SubmitUserContentRatingAsync(string, float)

    Declaration
    public void SubmitUserContentRatingAsync(string contentId, float rating)
    Parameters
    Type Name Description
    string contentId
    float rating

    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
    Type Description
    Task<Content>

    UpdateRepresentationAsync(Content, Representation)

    Declaration
    public Task<Representation> UpdateRepresentationAsync(Content content, Representation representation)
    Parameters
    Type Name Description
    Content content
    Representation representation
    Returns
    Type Description
    Task<Representation>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)