GetChildClass(handle)
Description
Section titled âDescriptionâThe GetChildClass function returns a string with the name of the class of the objectâs children.
Arguments
Section titled âArgumentsâ-
Handle:
The function takes a handle of the type âlight_userdataâ as an argument.
It can be omitted when using the colon notation on an objectThe Colon Notation is a way to omit the handle as the first argument when using the Object functions.
This is the general syntax with the colon notation: object:function()
This is the general syntax with standard handle notation: object.function(object)
Learn more in the Lua Functions - Object API topic.
- String:
The function returns a text string with the name of the class of the objectâs children.
Examples
Section titled âExamplesâThis example prints the class name of the selected sequencesâ children.
| Copy CodeLua |
| ``` |
| return function() |
-- Gets the class name of children of the selected sequence.Printf("The class name is " .. SelectedSequence():GetChildClass())end