- Jan 27, 2023
- 21
- 24
Thanks! That worked perfectly. I have no C# knowledge at all so this was confusing.using another tuple syntax fixes this
replacing
withCode:[TupleElementNames(new string[] { "albedo", "detailMask", "characterBase" })] public static readonly Dictionary<string, ValueTuple<P3dPaintSphere, P3dPaintSphere, CharacterBase>> _emitters = new Dictionary<string, ValueTuple<P3dPaintSphere, P3dPaintSphere, CharacterBase>>(); [TupleElementNames(new string[] { "albedo", "detailMask" })] public static readonly Dictionary<NPCController, ValueTuple<P3dPaintSphere, P3dPaintSphere>> _FBemitters = new Dictionary<NPCController, ValueTuple<P3dPaintSphere, P3dPaintSphere>>();
seems to workCode:public static readonly Dictionary<string, (P3dPaintSphere albedo, P3dPaintSphere detailMask, CharacterBase characterBase)> _emitters = new Dictionary<string, (P3dPaintSphere albedo, P3dPaintSphere detailMask, CharacterBase characterBase)>(); public static readonly Dictionary<NPCController, (P3dPaintSphere albedo, P3dPaintSphere detailMask)> _FBemitters = new Dictionary<NPCController, (P3dPaintSphere albedo, P3dPaintSphere detailMask)>();