using UnityEngine;
namespace Samples
{
///
/// Simple sample settings showing how to create custom configuration data for your package.
///
// Uncomment below line to have the settings appear in unified settings.
//[XRConfigurationData("Sample Settings", SampleConstants.k_SettingsKey)]
[System.Serializable]
public class SampleSettings : ScriptableObject
{
#if !UNITY_EDITOR
/// Static instance that will hold the runtime asset instance we created in our build process.
///
public static SampleSettings s_RuntimeInstance = null;
#endif
/// Requirement settings enumeration
public enum Requirement
{
/// Required
Required,
/// Optional
Optional,
/// None
None
}
[SerializeField, Tooltip("Changes item requirement.")]
Requirement m_RequiresItem;
/// Whether or not the item is required.
public Requirement requiresItem
{
get { return m_RequiresItem; }
set { m_RequiresItem = value; }
}
[SerializeField, Tooltip("Some toggle for runtime.")]
bool m_RuntimeToggle = true;
/// Where we toggled?
public bool runtimeToggle
{
get { return m_RuntimeToggle; }
set { m_RuntimeToggle = value; }
}
void Awake()
{
#if !UNITY_EDITOR
s_RuntimeInstance = this;
#endif
}
}
}