VisualInstance

Inherits: Spatial < Node < Object

继承人: BakedLightmapGIProbeGeometryInstanceLightReflectionProbeRootMotionView

类别: 核心

简要说明

属性

int

layers

1

方法

AABB

get_aabb ( ) const

RID

get_base ( ) const

RID

get_instance ( ) const

bool

get_layer_mask_bit ( int layer ) const

AABB

get_transformed_aabb ( ) const

无效

set_base ( RID base )

无效

set_layer_mask_bit ( int layer, bool enabled )

属性描述

违约

1

设定器

设置u层u掩码(值)

吸气剂

获取层掩码()

绘制此VisualInstance的渲染层。

此对象将仅在 Camera 其剔除遮罩包含此VisualInstance设置为的渲染对象的。

方法说明

  • AABB get_aabb ( ) const

返回 AABB (也称为边界框)用于此VisualInstance。

  • RID get_base ( ) const

  • RID get_instance ( ) const

  • bool get_layer_mask_bit ( int layer ) const

  • AABB get_transformed_aabb ( ) const

返回已转换的 AABB (也称为边界框)用于此VisualInstance。

在这种情况下,转换意味着 AABB 加上 Spatial S Transform

  • void set_base ( RID base )

设置VisualInstance的基础,这将更改引擎处理引擎罩下VisualInstance的方式。

建议仅使用 set_base 如果你知道你在做什么。

  • void set_layer_mask_bit ( int layer, bool enabled )