Class Linker_SingleManageTargetImage
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Linker_SingleManageTargetImage
Namespace: Appearition.Example
Assembly: Assembly-CSharp.dll
Syntax
public class Linker_SingleManageTargetImage : MonoBehaviour
Fields
assetId
Declaration
public string assetId
Field Value
Type | Description |
---|---|
System.String |
image
Declaration
public Image image
Field Value
Type | Description |
---|---|
UnityEngine.UI.Image |
mainBT
Declaration
public Button mainBT
Field Value
Type | Description |
---|---|
UnityEngine.UI.Button |
Methods
Setup(String, Sprite, Action<String>)
Setup a single target image in the Experience Management tab, and store the asset ID for future referencing. Also requires an action to call when the target image is pressed.
Declaration
public void Setup(string newAssetId, Sprite targetImage, Action<string> onButtonPressed)
Parameters
Type | Name | Description |
---|---|---|
System.String | newAssetId | New asset identifier. |
UnityEngine.Sprite | targetImage | Target image. |
System.Action<System.String> | onButtonPressed | On button pressed. |