Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Setting advanced control properties

Gersh Payzer edited this page May 23, 2018 · 1 revision

Not every control property has an API, in Unity, or you might have a custom control that you created.

There is a way to generically set properties from the SDK.

  1. Using an enum For the values we know about, we have an InteractiveControlProperty enumeration that includes the known set of properties.

Note: Not all controls have each property. For instance, a textbox control doesn't have a background image.

        MixerInteractive.GetControl("MyButton").SetProperty(InteractiveControlProperty.BackgroundImage, "http://myimage.png");
  1. Passing the string name of the property You can also pass the string name of the property and this will do the same thing as the above method.
        MixerInteractive.GetControl("MyButton").SetProperty("backgroundColor", "http://myimage.png");
Clone this wiki locally