版本

menu_open
Wwise Unity Integration Documentation

◆ SetGeometryFromMesh()

static void AkSurfaceReflector.SetGeometryFromMesh ( UnityEngine.Mesh  mesh,
ulong  geometryID,
bool  enableDiffraction,
bool  enableDiffractionOnBoundaryEdges,
bool  enableTriangles,
AK.Wwise.AcousticTexture[]  acousticTextures = null,
float[]  transmissionLossValues = null,
string  name = "" 
)
inlinestatic

Convert the mesh into a geometry consisting of vertices, triangles, surfaces, acoustic textures and transmission loss values. Send it to Wwise with the rest of the AkGeometryParams to add or update a geometry in Spatial Audio. It is necessary to create at least one geometry instance for each geometry set that is to be used for diffraction and reflection simulation. See SetGeometryInstance().

参数
meshThe mesh representing the geometry to be used for diffraction and reflection simulation.
geometryIDA unique ID representing the geometry.
enableDiffractionEnable the edges of this geometry to become diffraction edges.
enableDiffractionOnBoundaryEdgesEnable the boundary edges of this geometry to become diffraction edges. Boundary edges are edges that are connected to only one triangle.
enableTrianglesWhen enabled, the geometry triangles are indexed for ray computation and used to computed reflection and diffraction. Set EnableTriangles to false when using a geometry set only to describe a room, and not for reflection and diffraction calculation.
acousticTexturesThe acoustic texture of each surface of the geometry. Acoustic textures describe the filtering when sound reflects on the surface.
transmissionLossValuesThe transmission loss value of each surface of the geometry. Transmission loss is the filtering when the sound goes through the surface.
nameA name for the geometry.

被这些函数引用 SetGeometry().


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅