5 #if TEXT_MESH_PRO_EXISTS 8 namespace droid.Neodroid.Prototyping.Displayers {
14 DisplayerComponentMenuPath._ComponentMenuPath +
"TextMesh" + DisplayerComponentMenuPath._Postfix)]
15 public class TextMeshDisplayer : Displayer {
24 protected override void Setup() { this._text = this.GetComponent<TextMeshPro>(); }
30 public void SetText(
string text) {
33 Debug.Log(
"Applying " + text +
" To " + this.name);
37 this._text.SetText(text);
45 public override void Display(
float value) {
throw new NotImplementedException(); }
52 public override void Display(Double value) {
throw new NotImplementedException(); }
59 public override void Display(
float[] values) {
throw new NotImplementedException(); }
65 public override void Display(String value) {
68 Debug.Log(
"Applying " + value +
" To " + this.name);
77 namespace droid.Runtime.Prototyping.Displayers {
81 [AddComponentMenu(
"Neodroid/Displayers/TextMesh")]
84 protected override void Setup() {
85 Debug.Log(
"TextMeshPro is not defined in project, add 'TEXT_MESH_PRO_EXISTS' to your unity projects 'define symbols' under the player settings or '-define:TEXT_MESH_PRO_EXISTS' in mcs.rsp to enable TextMeshPro displayer integration");
94 Debug.Log(
"Applying " + text +
" To " + this.name);
105 public override void Display(
float value) {
throw new NotImplementedException(); }
111 public override void Display(Double value) {
throw new NotImplementedException(); }
117 public override void Display(
float[] values) {
throw new NotImplementedException(); }
124 if (this.Debugging) {
125 Debug.Log(
"Applying " + value +
" To " + this.name);
131 public override void Display(Vector3 value) {
throw new NotImplementedException(); }
132 public override void Display(Vector3[] value) {
throw new NotImplementedException(); }
override void Display(Vector3 value)
override void Display(Double value)
override void Display(String value)
void SetText(string text)
override void Display(Points.StringPoint point)
override void Display(Vector3[] value)
override void Display(Points.ValuePoint[] points)
override void Display(Points.ValuePoint points)
override void Display(float value)
override void PlotSeries(Points.ValuePoint[] points)
override void Display(float[] values)
override void Display(Points.StringPoint[] points)