17 [UnityEngine.SerializeField, UnityEngine.HideInInspector]
18 private string m_text;
22 public string text => m_text;
32 hapticMaterial.m_text =
text;
33 return hapticMaterial;
Represents a haptic material, which is a ScriptableObject in Unity. This class is used to handle hapt...
override string ToString()
Overrides the default ToString method to return the haptic data text.
static HapticMaterial CreateInstanceFromString(string text)
Creates an instance of HapticMaterial from a string.
string text
Publicly accessible property to get the haptic data text.
static HapticMaterial CreateInstance(UnityEngine.TextAsset asset)
Creates an instance of HapticMaterial from a Unity TextAsset.