Class EMSManageExperiencesUIB
Displays and handles the UI events for the experience management.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
EMSManageExperiencesUIB
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(EMSManageExperiencesB))]
public class EMSManageExperiencesUIB : BaseEMSUITab
Fields
arTargetIdText
Declaration
public Text arTargetIdText
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
arTargetImage
Declaration
public Image arTargetImage
Field Value
| Type |
Description |
| UnityEngine.UI.Image |
|
assetIdText
Declaration
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
Declaration
public Button createNewMediaBT
Field Value
| Type |
Description |
| UnityEngine.UI.Button |
|
delayBetweenPoints
Declaration
public float delayBetweenPoints
Field Value
| Type |
Description |
| System.Single |
|
experienceNameIF
Declaration
public InputField experienceNameIF
Field Value
| Type |
Description |
| UnityEngine.UI.InputField |
|
Declaration
public GameObject mediaLinkerPrefab
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
Declaration
public Transform mediaLinkersHolder
Field Value
| Type |
Description |
| UnityEngine.Transform |
|
productIdText
Declaration
public Text productIdText
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
publishBT
Declaration
Field Value
| Type |
Description |
| UnityEngine.UI.Button |
|
publishBTColPublish
Declaration
public Color publishBTColPublish
Field Value
| Type |
Description |
| UnityEngine.Color |
|
publishBTColUnknown
Declaration
public Color publishBTColUnknown
Field Value
| Type |
Description |
| UnityEngine.Color |
|
publishBTColUnpublish
Declaration
public Color publishBTColUnpublish
Field Value
| Type |
Description |
| UnityEngine.Color |
|
publishBTText
Declaration
public Text publishBTText
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
publishBTTextPublish
Declaration
public const string publishBTTextPublish = "Publish"
Field Value
| Type |
Description |
| System.String |
|
publishBTTextUnknown
Declaration
public const string publishBTTextUnknown = "Check Publish"
Field Value
| Type |
Description |
| System.String |
|
publishBTTextUnpublish
Declaration
public const string publishBTTextUnpublish = "Unpublish"
Field Value
| Type |
Description |
| System.String |
|
refreshBT
Declaration
Field Value
| Type |
Description |
| UnityEngine.UI.Button |
|
refreshBTText
Declaration
public Text refreshBTText
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
syncOutcomeText
Declaration
public Text syncOutcomeText
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
syncWithEMSBT
Declaration
public Button syncWithEMSBT
Field Value
| Type |
Description |
| UnityEngine.UI.Button |
|
syncWithEMSBTText
Declaration
public Text syncWithEMSBTText
Field Value
| Type |
Description |
| UnityEngine.UI.Text |
|
targetImageLinkerPrefab
Declaration
public GameObject targetImageLinkerPrefab
Field Value
| Type |
Description |
| UnityEngine.GameObject |
|
targetImageLinkersHolder
Declaration
public Transform targetImageLinkersHolder
Field Value
| Type |
Description |
| UnityEngine.Transform |
|
Methods
ClearArTargetList()
Destroys all the UI display of the medias inside the current experience.
Declaration
public void ClearArTargetList()
Displays an experience's content on the main panel. If the param given is null, will clear up the content.
Declaration
public void DisplayExperience(ArTarget tmpAsset)
Parameters
| Type |
Name |
Description |
| ArTarget |
tmpAsset |
Tmp asset.
|
GetDotAnimationObject()
Declaration
public DotAnimation GetDotAnimationObject()
Returns
GetPublishStateText()
Returns the publish state of the current experience as a text like on the UI.
Declaration
public string GetPublishStateText()
Returns
| Type |
Description |
| System.String |
The publish state text.
|
Declaration
public void OnCreateNewMediaButtonPressed()
Occurs whenever the Delete button has been pressed on the UI.
Removes a MediaFile from the local storage. Do note that the Media will be removed if the local ApiData gets synced.
Declaration
public void OnDeleteMediaButtonPressed(int arMediaId)
Parameters
| Type |
Name |
Description |
| System.Int32 |
arMediaId |
Ar media identifier.
|
Occurs whenever the Publish button has been pressed.
Goes through a series of check, and according to the experience's current state, checks, publishes or unpublishes the experience.
Declaration
public void OnPublishButtonPressed()
Occurs whenever the Refresh button has been pressed.
Re-fetches the ApiData from the cloud, and repopulates the UI with the new ApiData.
Declaration
public void OnRefreshButtonPressed()
TargetPublishStateHasChanged(Nullable<Boolean>)
Should be called once the publish state of an experience has been swapped.
Declaration
public void TargetPublishStateHasChanged(bool? isPublished)
Parameters
| Type |
Name |
Description |
| System.Nullable<System.Boolean> |
isPublished |
Is published.
|
UpdateExperiencesContainer()
Rebuilts the experience list completely. Destroys existing and rebuilds the allExperiences container.
Declaration
public void UpdateExperiencesContainer()
Extension Methods