Files
Basalt/docs/docs1_6/objects/Object/getName.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

24 lines
359 B
Markdown

# Object
## getName
Returns the given name of the object
### Returns
1. `string` name
#### Usage
* Prints name of object to debug window
```lua
local main = basalt.createFrame()
basalt.debug(main:getName()) -- returns the uuid
```
```lua
local main = basalt.createFrame("myFirstMainFrame")
basalt.debug(main:getName()) -- returns myFirstMainFrame
```