Struct GeometryInstance
Base node for geometry-based visual instances.
struct GeometryInstance
;
Shares some common functionality like visibility and custom materials.
Properties
| Name | Type | Description |
|---|---|---|
castShadow[get, set]
|
GeometryInstance | The selected shadow casting flag. See shadowcastingsetting for possible values.
|
extraCullMargin[get, set]
|
double | The extra distance added to the GeometryInstance's bounding box (AABB) to increase its cull box.
|
lodMaxDistance[get, set]
|
double | The GeometryInstance's max LOD distance. Note: This property currently has no effect. |
lodMaxHysteresis[get, set]
|
double | The GeometryInstance's max LOD margin. Note: This property currently has no effect. |
lodMinDistance[get, set]
|
double | The GeometryInstance's min LOD distance. Note: This property currently has no effect. |
lodMinHysteresis[get, set]
|
double | The GeometryInstance's min LOD margin. Note: This property currently has no effect. |
useInBakedLight[get, set]
|
bool | If true, this GeometryInstance will be used when baking lights using a GIProbe or BakedLightmap.
|
Methods
| Name | Description |
|---|---|
getCastShadowsSetting
|
|
getExtraCullMargin
|
|
getFlag
|
Returns the GeometryInstance that have been set for this object.
|
getLodMaxDistance
|
|
getLodMaxHysteresis
|
|
getLodMinDistance
|
|
getLodMinHysteresis
|
|
getMaterialOverride
|
|
setCastShadowsSetting
|
|
setCustomAabb
|
Overrides the bounding box of this node with a custom one. To remove it, set an AABB with all fields set to zero.
|
setExtraCullMargin
|
|
setFlag
|
Sets the GeometryInstance specified. See GeometryInstance for options.
|
setLodMaxDistance
|
|
setLodMaxHysteresis
|
|
setLodMinDistance
|
|
setLodMinHysteresis
|
|
setMaterialOverride
|
Enums
| Name | Description |
|---|---|
Constants
|
|
Flags
|
|
ShadowCastingSetting
|