SetProperty
Introduction
Code Example - Assigning Position
void CustomActivity(bool firstTimeCalled)
{
var keyboard = InputManager.Keyboard;
if(keyboard.KeyPushed(Microsoft.Xna.Framework.Input.Keys.Up))
{
GumScreen.ColoredRectangleInstance.SetProperty("Y", 10.0f);
}
if (keyboard.KeyPushed(Microsoft.Xna.Framework.Input.Keys.Down))
{
GumScreen.ColoredRectangleInstance.SetProperty("Y", 80.0f);
}
}
Code Example - Assigning States



Last updated
Was this helpful?