Is it possible to get this fixed in a future version of the Wwise Unity package?
AkLinuxSettings
has serializable fields UserSettings
, AdvancedSettings
and CommsSettings
that are named the same as fields in the super class. This causes a bit of console log noise, but Unity also warns that it is not doing what you probably think it is doing.
1) Unity warns:
The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(AkLinuxSettings) UserSettings
The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(AkLinuxSettings) AdvancedSettings
The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(AkLinuxSettings) CommsSettings
This seems likely to be a bug: changes to those object in AkLinuxSettings
are not likely persisted.
2) It causes compiler warnings that are noisy in the console:
Assets/Wwise/API/Runtime/Handwritten/Linux/AkLinuxSettings.cs(73,30): warning CS0108: 'AkLinuxSettings.UserSettings' hides inherited member 'AkWwiseInitializationSettings.CommonPlatformSettings.UserSettings'. Use the new keyword if hiding was intended.
Assets/Wwise/API/Runtime/Handwritten/Linux/AkLinuxSettings.cs(76,34): warning CS0108: 'AkLinuxSettings.AdvancedSettings' hides inherited member 'AkWwiseInitializationSettings.CommonPlatformSettings.AdvancedSettings'. Use the new keyword if hiding was intended.
Assets/Wwise/API/Runtime/Handwritten/Linux/AkLinuxSettings.cs(79,30): warning CS0108: 'AkLinuxSettings.CommsSettings' hides inherited member 'AkWwiseInitializationSettings.CommonPlatformSettings.CommsSettings'. Use the new keyword if hiding was intended.
tings.cs(76,34): warning CS0108: 'AkLinuxSettings.AdvancedSettings' hides inherited member 'AkWwiseInitializationSettings.CommonPlatformSettings.AdvancedSettings'. Use the new keyword if hiding was intended.
Assets/Wwise/API/Runtime/Handwritten/Linux/AkLinuxSettings.cs(79,30): warning CS0108: 'AkLinuxSettings.CommsSettings' hides inherited member 'AkWwiseInitializationSettings.CommonPlatformSettings.CommsSettings'. Use the new keyword if hiding was intended.