Click or drag to resize

EditorImportPluginGetOptionVisibility Method

This method can be overridden to hide specific import options if conditions are met. This is mainly useful for hiding options that depend on others if one of them is disabled. For example:

func get_option_visibility(option, options):
    # Only show the lossy quality setting if the compression mode is set to "Lossy".
    if option == "compress/lossy_quality" and options.has("compress/mode"):
        return int(options["compress/mode"]) == COMPRESS_LOSSY

    return true

Return true to make all options always visible.

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public virtual bool GetOptionVisibility(
	string option,
	Dictionary options
)

Parameters

option
Type: SystemString

[Missing <param name="option"/> documentation for "M:Godot.EditorImportPlugin.GetOptionVisibility(System.String,Godot.Collections.Dictionary)"]

options
Type: Godot.CollectionsDictionary

[Missing <param name="options"/> documentation for "M:Godot.EditorImportPlugin.GetOptionVisibility(System.String,Godot.Collections.Dictionary)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.EditorImportPlugin.GetOptionVisibility(System.String,Godot.Collections.Dictionary)"]

See Also