Class SimpleContentPublishingStep
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.Example
Assembly: Unity.Services.Ugc.Bridge.Editor.dll
Syntax
[CreateAssetMenu(menuName = "UGC Bridge/Steps Assets/Publishing/SimpleContentPublishingStep")]
public class SimpleContentPublishingStep : ContentPublishingStep
Properties
ContentPublishingInfo
The data used to publish the content.
Declaration
public override ContentPublishingInfo ContentPublishingInfo { get; }
Property Value
Type | Description |
---|---|
ContentPublishingInfo |
Overrides
Methods
Initialize()
Initialize the ContentPublishingStep asset. Override it for custom fields initialization.
Declaration
public override void Initialize()
Overrides
OnFocus()
Called when the parent window is focused
Declaration
public override void OnFocus()
Overrides
OnGUI()
Draw the GUI of the ContentPublishingStep asset.
Declaration
public override void OnGUI()
Overrides
PublishAsync(Action<Content>, Action<RequestFailedException>)
Publish the currently selected content to the backend.
Declaration
public override 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 |