mirror of
https://github.com/maxartz15/TextureCombiner.git
synced 2024-11-10 07:25:18 +01:00
30 lines
610 B
C#
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";
|
|||
|
}
|
|||
|
}
|
|||
|
}
|