Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
component.settings.initialVariables.variable = new SimpleChangeVariable<GameObjectSelection>[3];
// bool component.settings.initialVariables.variable[0] = new SimpleChangeVariable<GameObjectSelection>(); component.settings.initialVariables.variable[0].key = new StringValue<GameObjectSelection>("boolkey"); component.settings.initialVariables.variable[0].type = VariableType.Bool; component.settings.initialVariables.variable[0].boolValue = new BoolValue<GameObjectSelection>(boolValue);
// int/float component.settings.initialVariables.variable[1] = new SimpleChangeVariable<GameObjectSelection>(); component.settings.initialVariables.variable[1].key = new StringValue<GameObjectSelection>("floatkey"); component.settings.initialVariables.variable[1].type = VariableType.Int; // or VariableType.Float component.settings.initialVariables.variable[1].floatValue = new FloatValue<GameObjectSelection>(floatValue);
// string component.settings.initialVariables.variable[2] = new SimpleChangeVariable<GameObjectSelection>(); component.settings.initialVariables.variable[2].key = new StringValue<GameObjectSelection>("stringkey"); component.settings.initialVariables.variable[2].type = VariableType.String; component.settings.initialVariables.variable[2].stringValue = new StringValue<GameObjectSelection>(stringValue); Naturally, boolValue, floatValue and stringValue are the values you want to use, and replace the "key" definitions with the keys you're using.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow my project on Reddit - My Game DevLog
relentingVids - My YouTube Channel
Half Super Shop - My Shop
component.settings.initialVariables.variable = new SimpleChangeVariable<GameObjectSelection>[3];
// bool
component.settings.initialVariables.variable[0] = new SimpleChangeVariable<GameObjectSelection>();
component.settings.initialVariables.variable[0].key = new StringValue<GameObjectSelection>("boolkey");
component.settings.initialVariables.variable[0].type = VariableType.Bool;
component.settings.initialVariables.variable[0].boolValue = new BoolValue<GameObjectSelection>(boolValue);
// int/float
component.settings.initialVariables.variable[1] = new SimpleChangeVariable<GameObjectSelection>();
component.settings.initialVariables.variable[1].key = new StringValue<GameObjectSelection>("floatkey");
component.settings.initialVariables.variable[1].type = VariableType.Int; // or VariableType.Float
component.settings.initialVariables.variable[1].floatValue = new FloatValue<GameObjectSelection>(floatValue);
// string
component.settings.initialVariables.variable[2] = new SimpleChangeVariable<GameObjectSelection>();
component.settings.initialVariables.variable[2].key = new StringValue<GameObjectSelection>("stringkey");
component.settings.initialVariables.variable[2].type = VariableType.String;
component.settings.initialVariables.variable[2].stringValue = new StringValue<GameObjectSelection>(stringValue);
Naturally, boolValue, floatValue and stringValue are the values you want to use, and replace the "key" definitions with the keys you're using.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Follow my project on Reddit - My Game DevLog
relentingVids - My YouTube Channel
Half Super Shop - My Shop