[InlineButton]
Support Types
Parameters
Parameter Name
Arguments
Description
Examples
using RenownedGames.Apex;
using UnityEngine;
public class InlineButtonExample : MonoBehaviour
{
[InlineButton(nameof(RandomizeValue), Label = "Random")]
public float value;
[InlineButton(nameof(ResetName), Label = "Reset", Width = 60)]
public string playerName;
[InlineButton(nameof(ClearText), Label = "X", Width = 25, Side = InlineDecoratorSide.Right)]
public string description;
private void RandomizeValue()
{
value = Random.Range(0f, 100f);
}
private void ResetName()
{
playerName = "Player";
}
private void ClearText()
{
description = "";
}
}