Click or drag to resize

ProjectSettingsAddPropertyInfo Method

Adds a custom property info to a property. The dictionary must contain:

- name: String (the property's name)

- type: Int32 (see VariantType)

- optionally hint: Int32 (see PropertyHint) and hint_string: String

Example:

ProjectSettings.set("category/property_name", 0)

var property_info = {
    "name": "category/property_name",
    "type": TYPE_INT,
    "hint": PROPERTY_HINT_ENUM,
    "hint_string": "one,two,three"
}

ProjectSettings.add_property_info(property_info)

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void AddPropertyInfo(
	Dictionary hint
)

Parameters

hint
Type: Godot.CollectionsDictionary

[Missing <param name="hint"/> documentation for "M:Godot.ProjectSettings.AddPropertyInfo(Godot.Collections.Dictionary)"]

See Also