Hello, Im trying to add a MultiDensityImageSource as a global to be able to reuse it but I’m getting an error.
Fuse version 0.26.0 (build 7741)
<App>
<MultiDensityImageSource ux:Global="GlobalKey">
<FileImageSource Density="1" File="image.png"/>
<FileImageSource Density="2" File="image.png"/>
<FileImageSource Density="3" File="image.png"/>
</MultiDensityImageSource>
<Image Source="GlobalKey"/>
</App>
Configuring (3.7s)
Compiling syntax tree (1.9s)
Generating code and data (3.7s)
Build completed in 9.29 seconds
# Build complete.
Output: GL_VERSION: 2.1 INTEL-10.14.73
Output: GL_VENDOR: Intel Inc.
Output: GL_RENDERER: Intel(R) Iris(TM) Graphics 6100
Output: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException (ExceptionResource resource) <0x145f71b8 + 0x0002f> in <filename unknown>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Insert (System.Collections.Generic.TKey key, System.Collections.Generic.TValue value, Boolean add) <0x665930 + 0x0015b> in <filename unknown>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (System.Collections.Generic.TKey key, System.Collections.Generic.TValue value) <0x44a8a48 + 0x00027> in <filename unknown>:0
at Outracks.Simulator.Runtime.Environment.Bind (Outracks.Simulator.Bytecode.Variable variable, System.Object value) <0x145f3928 + 0x00023> in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) <0x11ff71b8 + 0x00117> in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Func (System.Object a1) <0x145f6368 + 0x00064> in <filename unknown>:0
at Outracks.Simulator.Runtime.LambdaClosure.Action (System.Object a1) <0x145f6338 + 0x0001b> in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (System.Object lambda, System.Object[] arguments) <0x145f5d78 + 0x002e5> in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.CallLambda i) <0x145f45b8 + 0x0004f> in <filename unknown>:0
at Outracks.Simulator.Bytecode.Expression.Match[T] (System.Func`2 a1, System.Func`2 a2, System.Func`2 a3, System.Func`2 a4, System.Func`2 a5, System.Func`2 a6, System.Func`2 a7, System.Func`2 a8, System.Func`2 a9, System.Func`2 a10, System.Func`2 a11, System.Func`2 a12, System.Func`2 a13, System.Func`2 a15, System.Func`2 a16) <0x11ff7c28 + 0x00261> in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Evaluate (Outracks.Simulator.Bytecode.Expression expression) <0x11ff7688 + 0x00563> in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (IEnumerable`1 statements) <0x11ff7538 + 0x00077> in <filename unknown>:0
at Outracks.Simulator.Runtime.ScopeClosure.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) <0x11ff71b8 + 0x00157> in <filename unknown>:0
at Outracks.Simulator.Runtime.VirtualMachine.Execute (IReflection reflection, Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) <0x11ff6f48 + 0x000af> in <filename unknown>:0
at Outracks.Simulator.Runtime.VirtualMachine.Execute (Outracks.Simulator.Bytecode.Lambda lambda, System.Object[] arguments) <0x11ff6f10 + 0x00023> in <filename unknown>:0
at Outracks.Simulator.Reifying.OnEnterState () <0x11ffa368 + 0x000b7> in <filename unknown>:0
at Outracks.Simulator.Application.SetState (Outracks.Simulator.State nextState) <0xf4a1248 + 0x00054> in <filename unknown>:0
at Outracks.Simulator.Application.OnUpdate () <0xf4a0da0 + 0x000c7> in <filename unknown>:0
at Fuse.App.Update () <0xf4a0c60 + 0x00026> in <filename unknown>:0
An item with the same key has already been added.