Click or drag to resize

SpatialMaterialSetFlag Method

Note: This API is now obsolete.

If true, enables the specified flag. Flags are optional behaviour that can be turned on and off. Only one flag can be enabled at a time with this function, the flag enumerators cannot be bit-masked together to enable or disable multiple flags at once. Flags can also be enabled by setting the corresponding member to true. See SpatialMaterialFlags enumerator for options.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
[ObsoleteAttribute("SetFlag is deprecated. Use the Uv2Triplanar property instead.")]
public void SetFlag(
	SpatialMaterialFlags flag,
	bool enable
)

Parameters

flag
Type: GodotSpatialMaterialFlags

[Missing <param name="flag"/> documentation for "M:Godot.SpatialMaterial.SetFlag(Godot.SpatialMaterial.Flags,System.Boolean)"]

enable
Type: SystemBoolean

[Missing <param name="enable"/> documentation for "M:Godot.SpatialMaterial.SetFlag(Godot.SpatialMaterial.Flags,System.Boolean)"]

See Also