3D outline reference
There are different outline types based on the Adding Outlinespage:
enum OUTLINE_TYPE {
## Add an outline to the non-occluded parts of the mesh
VISIBLE = 0,
## Add an outline only to the occluded parts of the mesh
HIDDEN = 1,
## Add a complete outline to the mesh
FULL = 2,
## Add a silhouette to the occluded parts of the mesh
SILHOUETTE = 3,
## Add a silhouette and an outline to the mesh
OUTLINE_SILHOUETTE = 4
}The following methods are owned by the static class OutlineUtils3D. In order to call one of these functions you need to prepend the class name first:
OutlineUtils3D.add_outline(...)Outline Utility Functions
MeshInstance3D get_outline_or_null(_node: Node3D) staticReturn the outline if exists else return null
Variant get_outline_type_or_null(_outline: MeshInstance3D) staticReturn the outline type metadata from the given outline node, or null if not found.
Check if the given node is an outline by verifying its group membership.
Outline Management
Add an outline to the given MeshInstance3D with a specified outline type.
Try remove an outline from the given MeshInstance3D.
Add the selected outline material to the MeshInstance3D.
Basic Style Settings
Try get the outline from the node, if exists then set the color.
Try get the outline from the node, if exists then set the thickness.
Emission Settings
Try get the outline from the node, if exists then set emission enabled state.
Try get the outline from the node, if exists then set emission strength value.
Distance Fade Settings
Try get the outline from the node, if exists then set the distance fade enabled.
Try get the outline from the node, if exists then set the minimum distance fade distance.
Try get the outline from the node, if exists then set the maximum distance fade distance.
Try get the outline from the node, if exists then set distance scale enabled state.
Texture Settings
Try get the outline from the node, if exists then set texture enabled state.
Try get the outline from the node, if exists then set the outline texture.
Try get the outline from the node, if exists then set texture multiply with color state.
Try get the outline from the node, if exists then set texture tiling value.
Try get the outline from the node, if exists then set texture offset value.
Visibility Control
Try get the outline from the node, if exists then set visible to true.
Try get the outline from the node, if exists then set visible to false.
Last updated