/Godot 3.0


Inherits: Spatial < Node < Object

Inherited By: BakedLightmap, Light, ReflectionProbe, GIProbe, GeometryInstance

Category: Core

Brief Description

Member Functions

AABB get_aabb ( ) const
AABB get_transformed_aabb ( ) const
void set_base ( RID base )

Member Variables

int layers - The render layer(s) this VisualInstance is drawn on.

This object will only be visible for Cameras whose cull mask includes the render object this VisualInstance is set to.

Member Function Description

AABB get_aabb ( ) const

Returns the AABB (also known as the bounding box) for this VisualInstance.

AABB get_transformed_aabb ( ) const

Returns the transformed AABB (also known as the bounding box) for this VisualInstance.

Transformed in this case means the AABB plus the position, rotation, and scale of the Spatials Transform

void set_base ( RID base )

Sets the base of the VisualInstance, which changes how the engine handles the VisualInstance under the hood.

It is recommended to only use set_base if you know what you’re doing.

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.