![]() |
Interhaptics SDK for Unity 1.6
|
Represents a haptic material, which is a ScriptableObject in Unity. This class is used to handle haptic effects data. More...
Public Member Functions | |
override string | ToString () |
Overrides the default ToString method to return the haptic data text. | |
Static Public Member Functions | |
static HapticMaterial | CreateInstanceFromString (string text) |
Creates an instance of HapticMaterial from a string. | |
static HapticMaterial | CreateInstance (UnityEngine.TextAsset asset) |
Creates an instance of HapticMaterial from a Unity TextAsset. | |
Properties | |
string | text [get] |
Publicly accessible property to get the haptic data text. | |
Represents a haptic material, which is a ScriptableObject in Unity. This class is used to handle haptic effects data.
Definition at line 12 of file HapticMaterial.cs.
|
static |
Creates an instance of HapticMaterial from a Unity TextAsset.
asset | TextAsset containing haptic data. |
Definition at line 41 of file HapticMaterial.cs.
References Interhaptics.HapticMaterial.CreateInstanceFromString().
Referenced by Interhaptics.HapticMaterial.CreateInstanceFromString().
|
static |
Creates an instance of HapticMaterial from a string.
text | String containing haptic data. |
Definition at line 29 of file HapticMaterial.cs.
References Interhaptics.HapticMaterial.CreateInstance(), and Interhaptics.HapticMaterial.text.
Referenced by Interhaptics.HapticMaterial.CreateInstance().
override string Interhaptics.HapticMaterial.ToString | ( | ) |
Overrides the default ToString method to return the haptic data text.
Definition at line 50 of file HapticMaterial.cs.
References Interhaptics.HapticMaterial.text.
|
get |
Publicly accessible property to get the haptic data text.
Definition at line 22 of file HapticMaterial.cs.
Referenced by Interhaptics.HapticMaterial.CreateInstanceFromString(), and Interhaptics.HapticMaterial.ToString().