4.当特效下的网格数大于8个时会报警告:Mesh ‘’ has more than the 8 submeshes. Extra submeshes will be ignored.
1 2 3 4 5
Mesh '' has more than the 8 submeshes. Extra submeshes will be ignored. UnityEngine.StackTraceUtility:ExtractStackTrace () Coffee.UIExtensions.UIParticleUpdater:Refresh (Coffee.UIExtensions.UIParticle) (at Library/PackageCache/com.coffee.ui-particle@5a8f1263ef/Scripts/UIParticleUpdater.cs:85) Coffee.UIExtensions.UIParticleUpdater:Refresh () (at Library/PackageCache/com.coffee.ui-particle@5a8f1263ef/Scripts/UIParticleUpdater.cs:54) UnityEngine.Canvas:SendWillRenderCanvases ()
查看源码发现,动画材质属性更改是通过从ParticleSystemRenderer拿出ShadeMaterials和MaterialPropertyBlock,传给CanvasRenderer,根据Inspector设置好的Animatable material ProPerties来更新Canvas上的材质。