Class ContentPublishingStep
Base abstract class for a publishing IUgcBridgeStep. Provide ScriptableObject and base publishing functionalities.
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)
Namespace: Unity.Services.Ugc.Bridge.Editor
Assembly: Unity.Services.Ugc.Bridge.Editor.dll
Syntax
public abstract class ContentPublishingStep : ScriptableObject
Properties
ContentPublishingInfo
The data used to publish the content.
Declaration
public abstract ContentPublishingInfo ContentPublishingInfo { get; }
Property Value
Type | Description |
---|---|
ContentPublishingInfo |
Methods
Initialize()
Initialize the ContentPublishingStep asset. Override it for custom fields initialization.
Declaration
public virtual void Initialize()
OnFocus()
Called when the parent window is focused
Declaration
public virtual void OnFocus()
OnGUI()
Draw the GUI of the ContentPublishingStep asset.
Declaration
public abstract void OnGUI()
PublishAsync(Action<Content>, Action<RequestFailedException>)
Publish the currently selected content to the backend.
Declaration
public abstract void PublishAsync(Action<Content> onPublished, Action<RequestFailedException> onError)
Parameters
Type | Name | Description |
---|---|---|
Action<Content> | onPublished | Callback invoked after the content is published |
Action<RequestFailedException> | onError | Callback invoked if the content creation failed |