版本

menu_open
Wwise Unity Integration Documentation

◆ SetGeometryInstance() [2/2]

static void AkSurfaceReflector.SetGeometryInstance ( ulong  geometryInstanceID,
ulong  geometryID,
UnityEngine.Transform  transform,
bool  useForReflectionAndDiffraction,
bool  solid 
)
inlinestatic

Add or update an instance of the geometry by sending the transform of this component to Wwise. A geometry instance is a unique instance of a geometry set with a specified transform (position, rotation and scale). It is necessary to create at least one geometry instance for each geometry set that is to be used for diffraction and reflection simulation.

参数
geometryInstanceIDA unique ID to for the geometry instance. It must be unique amongst all geometry instances, including geometry instances referencing different geometries.
geometryIDThe ID of the geometry referenced by this instance.
transformThe transform to be applied to the geometry to convert it in world positions.
useForReflectionAndDiffractionWhen enabled, the geometry instance triangles are used to compute reflection and diffraction. Set to false when using a geometry instance only to describe a room, and not for reflection and diffraction calculation.
solidA solid geometry instance applies transmission loss once, over its volume. A non-solid geometry instance is one where each surface is infinitely thin, applying transmission loss at each surface.

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅