版本

menu_open

◆ SetValue

bool(* ak_wwise_plugin_host_property_set_v1::SetValue) (struct ak_wwise_plugin_host_property_set_instance_v1 *in_this, const GUID *in_guidPlatform, const char *in_pszPropertyName, const AK::WwiseAuthoringAPI::AkVariantBase *in_varProperty)

Modifies the value of a specific property as a variant.

Updates the property in_pszPropertyName to contain in_varProperty under the in_guidPlatform platform.

The property type, as contained by in_varProperty, should be equal to the type as defined in the plug-in XML definition file.

备注: Your changes might be substantially altered or replaced if your property is bound to an RTPC ( PropertyHasRTPC ) or a State ( PropertyHasState ).

More than one platform will be affected if the property is linked ( PropertyPlatformIsLinked ); all platforms are linked by default.

警告: This is a semi-private function. You should use the typed SetValue methods instead.

SetValueString, SetValueInt64, SetValueInt32, SetValueInt16, SetValueInt8, SetValueUInt64, SetValueUInt32, SetValueUInt16, SetValueUInt8, SetValueReal64 SetValueReal32, SetValueBool

The function can still be useful if you want to handle parameters as a black box, getting a
value without knowing the type, and then setting that value elsewhere.
参见
参数
[in]in_thisCurrent instance of this interface.
[in]in_guidPlatformThe unique ID of the platform whose property you want to modify.
[in]in_pszPropertyNameThe name of the property to update, based on the XML definition file.
[out]in_varPropertyThe new value of the property.
返回
true if successful.

在文件 HostPropertySet.h161 行定义.

被这些函数引用 AK.Wwise::Plugin::V1::PropertySet::SetValue().


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅