6 namespace droid.Runtime.Prototyping.Displayers.Canvas {
11 [AddComponentMenu(DisplayerComponentMenuPath._ComponentMenuPath
13 + DisplayerComponentMenuPath._Postfix)]
15 [SerializeField] Image[] _images;
16 [SerializeField] [Range(0.0f, 1.0f)]
float _value;
21 get {
return this._value; }
24 this.SetFillAmount(value);
31 protected override void Setup() {
32 if (this._images == null || this._images.Length == 0) {
33 this._images = this.GetComponentsInChildren<Image>();
43 Debug.Log($
"Setting amount to {amount}");
47 if (this._images[0]) {
48 this._images[0].fillAmount = amount;
57 public override void Display(
float value) {
60 Debug.Log(
"Applying " + value +
" To " + this.name);
66 this.SetFillAmount(value);
72 public override void Display(Double value) {
75 Debug.Log(
"Applying " + value +
" To " + this.name);
79 this.Value = (float)value;
81 this.SetFillAmount((
float)value);
87 public override void Display(
float[] values) {
throw new NotImplementedException(); }
92 public override void Display(String value) {
throw new NotImplementedException(); }
97 public override void Display(Vector3 value) {
throw new NotImplementedException(); }
102 public override void Display(Vector3[] value) {
throw new NotImplementedException(); }
override void Display(float[] values)
override void Display(Points.ValuePoint[] points)
override void Display(String value)
override void Display(Double value)
override void PlotSeries(Points.ValuePoint[] points)
override void Display(Points.StringPoint point)
override void Display(Vector3[] value)
override void Display(Points.ValuePoint points)
override void Display(Vector3 value)
override void Display(Points.StringPoint[] points)
void SetFillAmount(float amount)
override void Display(float value)