mirror of
https://github.com/maxartz15/TextureCombiner.git
synced 2024-11-14 00:55:35 +01:00
1165a4e4a8
P4 -> GitHub sync.
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";
|
|
}
|
|
}
|
|
} |