TextureCombiner/Assets/Scripts/Options/SaveOptions.cs
max 1165a4e4a8 Init.
P4 -> GitHub sync.
2020-11-01 03:54:32 +01:00

30 lines
610 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace TextureCombiner
{
public class SaveOptions : Options
{
[SerializeField]
private InputField inputFieldName = null;
private void OnEnable()
{
inputFieldName.text = PlayerPrefs.GetString("outputName", "_RMAH");
}
protected override void OnDisable()
{
PlayerPrefs.SetString("outputName", inputFieldName.text);
base.OnDisable();
}
public string GetOutputName()
{
return inputFieldName.text + ".png";
}
}
}