Click or drag to resize

SpatialMaterialSetFeature Method

Note: This API is now obsolete.

If true, enables the specified SpatialMaterialFeature. Many features that are available in SpatialMaterials need to be enabled before use. This way the cost for using the feature is only incurred when specified. Features can also be enabled by setting the corresponding member to true.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
[ObsoleteAttribute("SetFeature is deprecated. Use the DetailEnabled property instead.")]
public void SetFeature(
	SpatialMaterialFeature feature,
	bool enable
)

Parameters

feature
Type: GodotSpatialMaterialFeature

[Missing <param name="feature"/> documentation for "M:Godot.SpatialMaterial.SetFeature(Godot.SpatialMaterial.Feature,System.Boolean)"]

enable
Type: SystemBoolean

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

See Also