All pages
Powered by GitBook
1 of 1

Loading...

GetGraphicalUiElementByName

Introduction

GetGraphicalUiElementByName returns the instance of a contained element by name, or null if a matching element isn't found.

Code Example

The following code can be used to find the "Score" component and disable it from being a clickable UI element:

For more information on the Enabled property, see .

// Assuming the current code has a EntireGumScreen object:
EntireGumScreen.GetGraphicalUiElementByName("Score").Enabled = false;
the IWindow.Enabled page