W3cubDocs

/Godot 3.1

VisualScriptClassConstant

Inherits: VisualScriptNode < Resource < Reference < Object

Category: Core

Brief Description

Gets a constant from a given class.

Properties

String base_type
String constant

Description

This node returns a constant from a given class, such as @GlobalScope.TYPE_INT. See the given class’ documentation for available constants.

Input Ports:

none

Output Ports:

  • Data (variant): value

Property Descriptions

String base_type

Setter set_base_type(value)
Getter get_base_type()

The constant’s parent class.

String constant

Setter set_class_constant(value)
Getter get_class_constant()

The constant to return. See the given class for its available constants.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_visualscriptclassconstant.html