Struct GeometryInstance

Base node for geometry-based visual instances.

struct GeometryInstance ;

Shares some common functionality like visibility and custom materials.

Properties

NameTypeDescription
castShadow[get, set] GeometryInstance.ShadowCastingSettingThe selected shadow casting flag. See shadowcastingsetting for possible values.
extraCullMargin[get, set] doubleThe extra distance added to the GeometryInstance's bounding box (AABB) to increase its cull box.
lodMaxDistance[get, set] doubleThe GeometryInstance's max LOD distance. Note: This property currently has no effect.
lodMaxHysteresis[get, set] doubleThe GeometryInstance's max LOD margin. Note: This property currently has no effect.
lodMinDistance[get, set] doubleThe GeometryInstance's min LOD distance. Note: This property currently has no effect.
lodMinHysteresis[get, set] doubleThe GeometryInstance's min LOD margin. Note: This property currently has no effect.
useInBakedLight[get, set] boolIf true, this GeometryInstance will be used when baking lights using a GIProbe or BakedLightmap.

Methods

NameDescription
getCastShadowsSetting
getExtraCullMargin
getFlag Returns the GeometryInstance.flags 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.flags specified. See GeometryInstance.flags for options.
setLodMaxDistance
setLodMaxHysteresis
setLodMinDistance
setLodMinHysteresis
setMaterialOverride

Enums

NameDescription
Constants
Flags
ShadowCastingSetting