mixer / interactive-unity-plugin

Unity Plugin for Mixer Interactivity
MIT License
59 stars 23 forks source link

Changing button position #90

Closed CahirDev closed 6 years ago

CahirDev commented 6 years ago

Hello, I would like to ask how can i change the button position displayed on player screen (I mean during playing, not in this browser editor). I know we can change some properties like this: InteractivityManager.SingletonInstance.GetButton("ButtonName").SetProperty(InteractiveControlProperty.BackgroundColor, "#ffffff"); But how can I change this position values? So for example I could have an element that will follow mouse.

And next question: how to enable buttons if I also put a Mouse in controlls in Mixer browser UI editor? When I create a mouse all my buttons are always hidden.

payzer commented 6 years ago

You could update the position property on the scene, but that would be a bit involved. you also cannot have mouse controls and buttons at the same time.

But good news, for both of those scenarios, there is a much more flexible solution that we recommend if you are going beyond the basic controls :): https://github.com/mixer/cdk/releases

Getting started: https://dev.mixer.com/reference/interactive_next/quickstart-html.html