8 namespace droid.Runtime.Prototyping.Configurables {
12 [AddComponentMenu(ConfigurableComponentMenuPath._ComponentMenuPath
14 + ConfigurableComponentMenuPath._Postfix)]
15 [RequireComponent(typeof(Light))]
20 string _shadow_strength;
22 string _indirect_multiplier;
28 _decimal_granularity = 2,
29 _Min_Values = Vector3.one * 0.7f,
30 _Max_Values = Vector3.one * 1f
35 _decimal_granularity = 2,
36 _Min_Values = Vector3.one * 0.0f,
37 _Max_Values = Vector3.one * 1f,
49 this._shadow_strength = this.Identifier +
"ShadowStrength";
50 this._color_r = this.Identifier +
"ColorR";
51 this._color_g = this.Identifier +
"ColorG";
52 this._color_b = this.Identifier +
"ColorB";
53 this._intensity = this.Identifier +
"Intensity";
54 this._indirect_multiplier = this.Identifier +
"IndirectMultiplier";
56 this._light = this.GetComponent<Light>();
63 this.ParentEnvironment =
64 NeodroidUtilities.RegisterComponent(this.ParentEnvironment,
66 this._shadow_strength);
67 this.ParentEnvironment =
68 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._color_r);
69 this.ParentEnvironment =
70 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._color_b);
71 this.ParentEnvironment =
72 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._color_g);
73 this.ParentEnvironment =
74 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._intensity);
75 this.ParentEnvironment =
76 NeodroidUtilities.RegisterComponent(this.ParentEnvironment,
78 this._indirect_multiplier);
85 if (this.ParentEnvironment == null) {
89 this.ParentEnvironment.UnRegister(
this, this._shadow_strength);
90 this.ParentEnvironment.UnRegister(
this, this._color_r);
91 this.ParentEnvironment.UnRegister(
this, this._color_g);
92 this.ParentEnvironment.UnRegister(
this, this._color_b);
93 this.ParentEnvironment.UnRegister(
this, this._intensity);
94 this.ParentEnvironment.UnRegister(
this, this._indirect_multiplier);
97 public override ISpace ConfigurableValueSpace {
get; }
104 if (this.Debugging) {
105 DebugPrinting.ApplyPrint(this.Debugging, configuration, this.Identifier);
112 var c = this._light.color;
114 this._light.color = c;
116 var c = this._light.color;
118 this._light.color = c;
120 var c = this._light.color;
122 this._light.color = c;
135 var o = this._int_ind_sha_space.
Sample();
136 var v = this._color_space.
Sample();
override Configuration [] SampleConfigurations()
override void UnRegisterComponent()
override void RegisterComponent()
override void ApplyConfiguration(IConfigurableConfiguration configuration)