summaryrefslogtreecommitdiff
path: root/Assets/Plugins/Sirenix/Odin Inspector/Modules/Unity.Mathematics.data
blob: 9ebcaa883d1a830a1f793d17c254f5a6d437378c (plain)
ofshex dumpascii
0000 02 2f 00 00 00 00 01 4d 00 00 00 53 00 69 00 72 00 65 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 ./.....M...S.i.r.e.n.i.x...O.d.i
0020 00 6e 00 49 00 6e 00 73 00 70 00 65 00 63 00 74 00 6f 00 72 00 2e 00 45 00 64 00 69 00 74 00 6f .n.I.n.s.p.e.c.t.o.r...E.d.i.t.o
0040 00 72 00 2e 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 73 00 2e 00 4d 00 6f 00 64 00 75 00 6c 00 65 .r...M.o.d.u.l.e.s...M.o.d.u.l.e
0060 00 44 00 61 00 74 00 61 00 2c 00 20 00 53 00 69 00 72 00 65 00 6e 00 69 00 78 00 2e 00 4f 00 64 .D.a.t.a.,...S.i.r.e.n.i.x...O.d
0080 00 69 00 6e 00 49 00 6e 00 73 00 70 00 65 00 63 00 74 00 6f 00 72 00 2e 00 45 00 64 00 69 00 74 .i.n.I.n.s.p.e.c.t.o.r...E.d.i.t
00a0 00 6f 00 72 00 00 00 00 00 27 01 02 00 00 00 49 00 44 00 01 11 00 00 00 55 00 6e 00 69 00 74 00 .o.r.....'.....I.D......U.n.i.t.
00c0 79 00 2e 00 4d 00 61 00 74 00 68 00 65 00 6d 00 61 00 74 00 69 00 63 00 73 00 01 01 07 00 00 00 y...M.a.t.h.e.m.a.t.i.c.s.......
00e0 56 00 65 00 72 00 73 00 69 00 6f 00 6e 00 2f 01 00 00 00 01 18 00 00 00 53 00 79 00 73 00 74 00 V.e.r.s.i.o.n./.........S.y.s.t.
0100 65 00 6d 00 2e 00 56 00 65 00 72 00 73 00 69 00 6f 00 6e 00 2c 00 20 00 6d 00 73 00 63 00 6f 00 e.m...V.e.r.s.i.o.n.,...m.s.c.o.
0120 72 00 6c 00 69 00 62 00 01 00 00 00 18 01 00 00 00 18 00 00 00 00 18 00 00 00 00 18 00 00 00 00 r.l.i.b.........................
0140 05 01 01 05 00 00 00 46 00 69 00 6c 00 65 00 73 00 2f 02 00 00 00 01 87 00 00 00 53 00 79 00 73 .......F.i.l.e.s./.........S.y.s
0160 00 74 00 65 00 6d 00 2e 00 43 00 6f 00 6c 00 6c 00 65 00 63 00 74 00 69 00 6f 00 6e 00 73 00 2e .t.e.m...C.o.l.l.e.c.t.i.o.n.s..
0180 00 47 00 65 00 6e 00 65 00 72 00 69 00 63 00 2e 00 4c 00 69 00 73 00 74 00 60 00 31 00 5b 00 5b .G.e.n.e.r.i.c...L.i.s.t.`.1.[.[
01a0 00 53 00 69 00 72 00 65 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 00 6e 00 49 00 6e 00 73 00 70 .S.i.r.e.n.i.x...O.d.i.n.I.n.s.p
01c0 00 65 00 63 00 74 00 6f 00 72 00 2e 00 45 00 64 00 69 00 74 00 6f 00 72 00 2e 00 4d 00 6f 00 64 .e.c.t.o.r...E.d.i.t.o.r...M.o.d
01e0 00 75 00 6c 00 65 00 73 00 2e 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 44 00 61 00 74 00 61 00 2b .u.l.e.s...M.o.d.u.l.e.D.a.t.a.+
0200 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 46 00 69 00 6c 00 65 00 2c 00 20 00 53 00 69 00 72 00 65 .M.o.d.u.l.e.F.i.l.e.,...S.i.r.e
0220 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 00 6e 00 49 00 6e 00 73 00 70 00 65 00 63 00 74 00 6f .n.i.x...O.d.i.n.I.n.s.p.e.c.t.o
0240 00 72 00 2e 00 45 00 64 00 69 00 74 00 6f 00 72 00 5d 00 5d 00 2c 00 20 00 6d 00 73 00 63 00 6f .r...E.d.i.t.o.r.].].,...m.s.c.o
0260 00 72 00 6c 00 69 00 62 00 02 00 00 00 06 04 00 00 00 00 00 00 00 02 2f 03 00 00 00 01 58 00 00 .r.l.i.b.............../.....X..
0280 00 53 00 69 00 72 00 65 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 00 6e 00 49 00 6e 00 73 00 70 .S.i.r.e.n.i.x...O.d.i.n.I.n.s.p
02a0 00 65 00 63 00 74 00 6f 00 72 00 2e 00 45 00 64 00 69 00 74 00 6f 00 72 00 2e 00 4d 00 6f 00 64 .e.c.t.o.r...E.d.i.t.o.r...M.o.d
02c0 00 75 00 6c 00 65 00 73 00 2e 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 44 00 61 00 74 00 61 00 2b .u.l.e.s...M.o.d.u.l.e.D.a.t.a.+
02e0 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 46 00 69 00 6c 00 65 00 2c 00 20 00 53 00 69 00 72 00 65 .M.o.d.u.l.e.F.i.l.e.,...S.i.r.e
0300 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 00 6e 00 49 00 6e 00 73 00 70 00 65 00 63 00 74 00 6f .n.i.x...O.d.i.n.I.n.s.p.e.c.t.o
0320 00 72 00 2e 00 45 00 64 00 69 00 74 00 6f 00 72 00 03 00 00 00 27 01 04 00 00 00 50 00 61 00 74 .r...E.d.i.t.o.r.....'.....P.a.t
0340 00 68 00 01 15 00 00 00 4d 00 61 00 74 00 68 00 65 00 6d 00 61 00 74 00 69 00 63 00 73 00 44 00 .h......M.a.t.h.e.m.a.t.i.c.s.D.
0360 72 00 61 00 77 00 65 00 72 00 73 00 2e 00 63 00 73 00 01 01 04 00 00 00 44 00 61 00 74 00 61 00 r.a.w.e.r.s...c.s.......D.a.t.a.
0380 2f 04 00 00 00 01 17 00 00 00 53 00 79 00 73 00 74 00 65 00 6d 00 2e 00 42 00 79 00 74 00 65 00 /.........S.y.s.t.e.m...B.y.t.e.
03a0 5b 00 5d 00 2c 00 20 00 6d 00 73 00 63 00 6f 00 72 00 6c 00 69 00 62 00 04 00 00 00 08 64 ad 00 [.].,...m.s.c.o.r.l.i.b......d..
03c0 00 01 00 00 00 2f 2f 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d .....//-------------------------
03e0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
0400 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0d 0a 2f 2f 20 3c 63 6f 70 79 72 69 67 68 74 20 66 69 --------------..//.<copyright.fi
0420 6c 65 3d 22 4d 61 74 68 65 6d 61 74 69 63 73 44 72 61 77 65 72 73 2e 63 73 22 20 63 6f 6d 70 61 le="MathematicsDrawers.cs".compa
0440 6e 79 3d 22 53 69 72 65 6e 69 78 20 49 56 53 22 3e 0d 0a 2f 2f 20 43 6f 70 79 72 69 67 68 74 20 ny="Sirenix.IVS">..//.Copyright.
0460 28 63 29 20 53 69 72 65 6e 69 78 20 49 56 53 2e 20 41 6c 6c 20 72 69 67 68 74 73 20 72 65 73 65 (c).Sirenix.IVS..All.rights.rese
0480 72 76 65 64 2e 0d 0a 2f 2f 20 3c 2f 63 6f 70 79 72 69 67 68 74 3e 0d 0a 2f 2f 2d 2d 2d 2d 2d 2d rved...//.</copyright>..//------
04a0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
04c0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
04e0 2d 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 53 69 72 65 6e 69 78 2e 4f 64 69 6e 49 6e 73 70 65 -....namespace.Sirenix.OdinInspe
0500 63 74 6f 72 2e 4d 6f 64 75 6c 65 73 2e 55 6e 69 74 79 4d 61 74 68 65 6d 61 74 69 63 73 2e 45 64 ctor.Modules.UnityMathematics.Ed
0520 69 74 6f 72 0d 0a 7b 0d 0a 23 69 66 20 55 4e 49 54 59 5f 45 44 49 54 4f 52 0d 0a 20 20 20 20 75 itor..{..#if.UNITY_EDITOR......u
0540 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 20 20 20 20 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 sing.System;......using.System.C
0560 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 20 20 20 20 75 73 69 6e 67 20 53 ollections.Generic;......using.S
0580 79 73 74 65 6d 2e 52 65 66 6c 65 63 74 69 6f 6e 3b 0d 0a 20 20 20 20 75 73 69 6e 67 20 53 69 72 ystem.Reflection;......using.Sir
05a0 65 6e 69 78 2e 4f 64 69 6e 49 6e 73 70 65 63 74 6f 72 2e 45 64 69 74 6f 72 3b 0d 0a 20 20 20 20 enix.OdinInspector.Editor;......
05c0 75 73 69 6e 67 20 53 69 72 65 6e 69 78 2e 55 74 69 6c 69 74 69 65 73 3b 0d 0a 20 20 20 20 75 73 using.Sirenix.Utilities;......us
05e0 69 6e 67 20 53 69 72 65 6e 69 78 2e 55 74 69 6c 69 74 69 65 73 2e 45 64 69 74 6f 72 3b 0d 0a 20 ing.Sirenix.Utilities.Editor;...
0600 20 20 20 75 73 69 6e 67 20 55 6e 69 74 79 2e 4d 61 74 68 65 6d 61 74 69 63 73 3b 0d 0a 20 20 20 ...using.Unity.Mathematics;.....
0620 20 75 73 69 6e 67 20 55 6e 69 74 79 45 64 69 74 6f 72 3b 0d 0a 20 20 20 20 75 73 69 6e 67 20 55 .using.UnityEditor;......using.U
0640 6e 69 74 79 45 6e 67 69 6e 65 3b 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 nityEngine;........public.sealed
0660 20 63 6c 61 73 73 20 4d 61 74 72 69 78 46 6c 6f 61 74 32 78 32 50 72 6f 63 65 73 73 6f 72 20 3a .class.MatrixFloat2x2Processor.:
0680 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 66 6c 6f 61 74 32 78 32 3e 20 7b 20 7d 0d 0a .MatrixProcessor<float2x2>.{.}..
06a0 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 46 6c ....public.sealed.class.MatrixFl
06c0 6f 61 74 33 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f oat3x2Processor.:.MatrixProcesso
06e0 72 3c 66 6c 6f 61 74 33 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c r<float3x2>.{.}......public.seal
0700 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 46 6c 6f 61 74 34 78 32 50 72 6f 63 65 73 73 6f 72 ed.class.MatrixFloat4x2Processor
0720 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 66 6c 6f 61 74 34 78 32 3e 20 7b 20 7d .:.MatrixProcessor<float4x2>.{.}
0740 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 ......public.sealed.class.Matrix
0760 46 6c 6f 61 74 32 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 Float2x3Processor.:.MatrixProces
0780 73 6f 72 3c 66 6c 6f 61 74 32 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 sor<float2x3>.{.}......public.se
07a0 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 46 6c 6f 61 74 33 78 33 50 72 6f 63 65 73 73 aled.class.MatrixFloat3x3Process
07c0 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 66 6c 6f 61 74 33 78 33 3e 20 7b or.:.MatrixProcessor<float3x3>.{
07e0 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 .}......public.sealed.class.Matr
0800 69 78 46 6c 6f 61 74 34 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 ixFloat4x3Processor.:.MatrixProc
0820 65 73 73 6f 72 3c 66 6c 6f 61 74 34 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 essor<float4x3>.{.}......public.
0840 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 46 6c 6f 61 74 32 78 34 50 72 6f 63 65 sealed.class.MatrixFloat2x4Proce
0860 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 66 6c 6f 61 74 32 78 34 3e ssor.:.MatrixProcessor<float2x4>
0880 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 .{.}......public.sealed.class.Ma
08a0 74 72 69 78 46 6c 6f 61 74 33 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 trixFloat3x4Processor.:.MatrixPr
08c0 6f 63 65 73 73 6f 72 3c 66 6c 6f 61 74 33 78 34 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 ocessor<float3x4>.{.}......publi
08e0 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 46 6c 6f 61 74 34 78 34 50 72 6f c.sealed.class.MatrixFloat4x4Pro
0900 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 66 6c 6f 61 74 34 78 cessor.:.MatrixProcessor<float4x
0920 34 3e 20 7b 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 4>.{.}........public.sealed.clas
0940 73 20 4d 61 74 72 69 78 44 6f 75 62 6c 65 32 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 s.MatrixDouble2x2Processor.:.Mat
0960 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 64 6f 75 62 6c 65 32 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 rixProcessor<double2x2>.{.}.....
0980 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 44 6f 75 62 6c .public.sealed.class.MatrixDoubl
09a0 65 33 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c e3x2Processor.:.MatrixProcessor<
09c0 64 6f 75 62 6c 65 33 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 double3x2>.{.}......public.seale
09e0 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 44 6f 75 62 6c 65 34 78 32 50 72 6f 63 65 73 73 6f 72 d.class.MatrixDouble4x2Processor
0a00 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 64 6f 75 62 6c 65 34 78 32 3e 20 7b 20 .:.MatrixProcessor<double4x2>.{.
0a20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 }......public.sealed.class.Matri
0a40 78 44 6f 75 62 6c 65 32 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 xDouble2x3Processor.:.MatrixProc
0a60 65 73 73 6f 72 3c 64 6f 75 62 6c 65 32 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 essor<double2x3>.{.}......public
0a80 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 44 6f 75 62 6c 65 33 78 33 50 72 6f .sealed.class.MatrixDouble3x3Pro
0aa0 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 64 6f 75 62 6c 65 33 cessor.:.MatrixProcessor<double3
0ac0 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 x3>.{.}......public.sealed.class
0ae0 20 4d 61 74 72 69 78 44 6f 75 62 6c 65 34 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 .MatrixDouble4x3Processor.:.Matr
0b00 69 78 50 72 6f 63 65 73 73 6f 72 3c 64 6f 75 62 6c 65 34 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 ixProcessor<double4x3>.{.}......
0b20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 44 6f 75 62 6c 65 public.sealed.class.MatrixDouble
0b40 32 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 64 2x4Processor.:.MatrixProcessor<d
0b60 6f 75 62 6c 65 32 78 34 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 ouble2x4>.{.}......public.sealed
0b80 20 63 6c 61 73 73 20 4d 61 74 72 69 78 44 6f 75 62 6c 65 33 78 34 50 72 6f 63 65 73 73 6f 72 20 .class.MatrixDouble3x4Processor.
0ba0 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 64 6f 75 62 6c 65 33 78 34 3e 20 7b 20 7d :.MatrixProcessor<double3x4>.{.}
0bc0 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 ......public.sealed.class.Matrix
0be0 44 6f 75 62 6c 65 34 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 Double4x4Processor.:.MatrixProce
0c00 73 73 6f 72 3c 64 6f 75 62 6c 65 34 78 34 3e 20 7b 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 ssor<double4x4>.{.}........publi
0c20 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 42 6f 6f 6c 32 78 32 50 72 6f 63 c.sealed.class.MatrixBool2x2Proc
0c40 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 62 6f 6f 6c 32 78 32 3e essor.:.MatrixProcessor<bool2x2>
0c60 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 .{.}......public.sealed.class.Ma
0c80 74 72 69 78 42 6f 6f 6c 33 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f trixBool3x2Processor.:.MatrixPro
0ca0 63 65 73 73 6f 72 3c 62 6f 6f 6c 33 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 cessor<bool3x2>.{.}......public.
0cc0 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 42 6f 6f 6c 34 78 32 50 72 6f 63 65 73 sealed.class.MatrixBool4x2Proces
0ce0 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 62 6f 6f 6c 34 78 32 3e 20 7b sor.:.MatrixProcessor<bool4x2>.{
0d00 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 .}......public.sealed.class.Matr
0d20 69 78 42 6f 6f 6c 32 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 ixBool2x3Processor.:.MatrixProce
0d40 73 73 6f 72 3c 62 6f 6f 6c 32 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 ssor<bool2x3>.{.}......public.se
0d60 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 42 6f 6f 6c 33 78 33 50 72 6f 63 65 73 73 6f aled.class.MatrixBool3x3Processo
0d80 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 62 6f 6f 6c 33 78 33 3e 20 7b 20 7d r.:.MatrixProcessor<bool3x3>.{.}
0da0 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 ......public.sealed.class.Matrix
0dc0 42 6f 6f 6c 34 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 Bool4x3Processor.:.MatrixProcess
0de0 6f 72 3c 62 6f 6f 6c 34 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c or<bool4x3>.{.}......public.seal
0e00 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 42 6f 6f 6c 32 78 34 50 72 6f 63 65 73 73 6f 72 20 ed.class.MatrixBool2x4Processor.
0e20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 62 6f 6f 6c 32 78 34 3e 20 7b 20 7d 0d 0a :.MatrixProcessor<bool2x4>.{.}..
0e40 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 42 6f ....public.sealed.class.MatrixBo
0e60 6f 6c 33 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 ol3x4Processor.:.MatrixProcessor
0e80 3c 62 6f 6f 6c 33 78 34 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 <bool3x4>.{.}......public.sealed
0ea0 20 63 6c 61 73 73 20 4d 61 74 72 69 78 42 6f 6f 6c 34 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 .class.MatrixBool4x4Processor.:.
0ec0 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 62 6f 6f 6c 34 78 34 3e 20 7b 20 7d 0d 0a 0d 0a MatrixProcessor<bool4x4>.{.}....
0ee0 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 49 6e ....public.sealed.class.MatrixIn
0f00 74 32 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c t2x2Processor.:.MatrixProcessor<
0f20 69 6e 74 32 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 int2x2>.{.}......public.sealed.c
0f40 6c 61 73 73 20 4d 61 74 72 69 78 49 6e 74 33 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 lass.MatrixInt3x2Processor.:.Mat
0f60 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 69 6e 74 33 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 rixProcessor<int3x2>.{.}......pu
0f80 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 49 6e 74 34 78 32 50 72 blic.sealed.class.MatrixInt4x2Pr
0fa0 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 69 6e 74 34 78 32 ocessor.:.MatrixProcessor<int4x2
0fc0 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d >.{.}......public.sealed.class.M
0fe0 61 74 72 69 78 49 6e 74 32 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f atrixInt2x3Processor.:.MatrixPro
1000 63 65 73 73 6f 72 3c 69 6e 74 32 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 cessor<int2x3>.{.}......public.s
1020 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 49 6e 74 33 78 33 50 72 6f 63 65 73 73 6f ealed.class.MatrixInt3x3Processo
1040 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 69 6e 74 33 78 33 3e 20 7b 20 7d 0d r.:.MatrixProcessor<int3x3>.{.}.
1060 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 49 .....public.sealed.class.MatrixI
1080 6e 74 34 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 nt4x3Processor.:.MatrixProcessor
10a0 3c 69 6e 74 34 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 <int4x3>.{.}......public.sealed.
10c0 63 6c 61 73 73 20 4d 61 74 72 69 78 49 6e 74 32 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 class.MatrixInt2x4Processor.:.Ma
10e0 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 69 6e 74 32 78 34 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 trixProcessor<int2x4>.{.}......p
1100 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 49 6e 74 33 78 34 50 ublic.sealed.class.MatrixInt3x4P
1120 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 69 6e 74 33 78 rocessor.:.MatrixProcessor<int3x
1140 34 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4>.{.}......public.sealed.class.
1160 4d 61 74 72 69 78 49 6e 74 34 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 MatrixInt4x4Processor.:.MatrixPr
1180 6f 63 65 73 73 6f 72 3c 69 6e 74 34 78 34 3e 20 7b 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 ocessor<int4x4>.{.}........publi
11a0 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 55 49 6e 74 32 78 32 50 72 6f 63 c.sealed.class.MatrixUInt2x2Proc
11c0 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 75 69 6e 74 32 78 32 3e essor.:.MatrixProcessor<uint2x2>
11e0 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 .{.}......public.sealed.class.Ma
1200 74 72 69 78 55 49 6e 74 33 78 32 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f trixUInt3x2Processor.:.MatrixPro
1220 63 65 73 73 6f 72 3c 75 69 6e 74 33 78 32 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 cessor<uint3x2>.{.}......public.
1240 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 55 49 6e 74 34 78 32 50 72 6f 63 65 73 sealed.class.MatrixUInt4x2Proces
1260 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 75 69 6e 74 34 78 32 3e 20 7b sor.:.MatrixProcessor<uint4x2>.{
1280 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 .}......public.sealed.class.Matr
12a0 69 78 55 49 6e 74 32 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 ixUInt2x3Processor.:.MatrixProce
12c0 73 73 6f 72 3c 75 69 6e 74 32 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 ssor<uint2x3>.{.}......public.se
12e0 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 55 49 6e 74 33 78 33 50 72 6f 63 65 73 73 6f aled.class.MatrixUInt3x3Processo
1300 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 75 69 6e 74 33 78 33 3e 20 7b 20 7d r.:.MatrixProcessor<uint3x3>.{.}
1320 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 ......public.sealed.class.Matrix
1340 55 49 6e 74 34 78 33 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 UInt4x3Processor.:.MatrixProcess
1360 6f 72 3c 75 69 6e 74 34 78 33 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c or<uint4x3>.{.}......public.seal
1380 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 55 49 6e 74 32 78 34 50 72 6f 63 65 73 73 6f 72 20 ed.class.MatrixUInt2x4Processor.
13a0 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 75 69 6e 74 32 78 34 3e 20 7b 20 7d 0d 0a :.MatrixProcessor<uint2x4>.{.}..
13c0 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 4d 61 74 72 69 78 55 49 ....public.sealed.class.MatrixUI
13e0 6e 74 33 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 nt3x4Processor.:.MatrixProcessor
1400 3c 75 69 6e 74 33 78 34 3e 20 7b 20 7d 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 <uint3x4>.{.}......public.sealed
1420 20 63 6c 61 73 73 20 4d 61 74 72 69 78 55 49 6e 74 34 78 34 50 72 6f 63 65 73 73 6f 72 20 3a 20 .class.MatrixUInt4x4Processor.:.
1440 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 75 69 6e 74 34 78 34 3e 20 7b 20 7d 0d 0a 0d 0a MatrixProcessor<uint4x4>.{.}....
1460 20 20 20 20 70 75 62 6c 69 63 20 73 65 61 6c 65 64 20 63 6c 61 73 73 20 44 69 73 61 62 6c 65 55 ....public.sealed.class.DisableU
1480 6e 69 74 79 4d 61 74 72 69 78 44 72 61 77 65 72 41 74 74 72 69 62 75 74 65 20 3a 20 41 74 74 72 nityMatrixDrawerAttribute.:.Attr
14a0 69 62 75 74 65 20 7b 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 61 62 73 74 72 61 63 74 ibute.{.}........public.abstract
14c0 20 63 6c 61 73 73 20 4d 61 74 72 69 78 50 72 6f 63 65 73 73 6f 72 3c 54 3e 20 3a 20 4f 64 69 6e .class.MatrixProcessor<T>.:.Odin
14e0 41 74 74 72 69 62 75 74 65 50 72 6f 63 65 73 73 6f 72 3c 54 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 AttributeProcessor<T>......{....
1500 20 20 20 20 20 20 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 50 72 6f 63 65 ......public.override.void.Proce
1520 73 73 53 65 6c 66 41 74 74 72 69 62 75 74 65 73 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 ssSelfAttributes(InspectorProper
1540 74 79 20 70 72 6f 70 65 72 74 79 2c 20 4c 69 73 74 3c 41 74 74 72 69 62 75 74 65 3e 20 61 74 74 ty.property,.List<Attribute>.att
1560 72 69 62 75 74 65 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ributes)..........{.............
1580 20 61 74 74 72 69 62 75 74 65 73 2e 47 65 74 4f 72 41 64 64 41 74 74 72 69 62 75 74 65 3c 49 6e .attributes.GetOrAddAttribute<In
15a0 6c 69 6e 65 50 72 6f 70 65 72 74 79 41 74 74 72 69 62 75 74 65 3e 28 29 3b 0d 0a 20 20 20 20 20 linePropertyAttribute>();.......
15c0 20 20 20 20 20 20 20 61 74 74 72 69 62 75 74 65 73 2e 47 65 74 4f 72 41 64 64 41 74 74 72 69 62 .......attributes.GetOrAddAttrib
15e0 75 74 65 3c 44 69 73 61 62 6c 65 55 6e 69 74 79 4d 61 74 72 69 78 44 72 61 77 65 72 41 74 74 72 ute<DisableUnityMatrixDrawerAttr
1600 69 62 75 74 65 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 ibute>();..........}............
1620 70 75 62 6c 69 63 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 50 72 6f 63 65 73 73 43 68 69 6c public.override.void.ProcessChil
1640 64 4d 65 6d 62 65 72 41 74 74 72 69 62 75 74 65 73 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 dMemberAttributes(InspectorPrope
1660 72 74 79 20 70 61 72 65 6e 74 50 72 6f 70 65 72 74 79 2c 20 4d 65 6d 62 65 72 49 6e 66 6f 20 6d rty.parentProperty,.MemberInfo.m
1680 65 6d 62 65 72 2c 20 4c 69 73 74 3c 41 74 74 72 69 62 75 74 65 3e 20 61 74 74 72 69 62 75 74 65 ember,.List<Attribute>.attribute
16a0 73 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 74 74 72 69 s)..........{..............attri
16c0 62 75 74 65 73 2e 41 64 64 28 6e 65 77 20 48 69 64 65 4c 61 62 65 6c 41 74 74 72 69 62 75 74 65 butes.Add(new.HideLabelAttribute
16e0 28 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 61 74 74 72 69 62 75 74 65 73 2e 41 64 64 ());..............attributes.Add
1700 28 6e 65 77 20 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 28 29 29 3b 0d 0a 20 (new.MatrixChildAttribute());...
1720 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c .......}......}........public.cl
1740 61 73 73 20 44 69 73 61 62 6c 65 55 6e 69 74 79 4d 61 74 72 69 78 44 72 61 77 65 72 41 74 74 72 ass.DisableUnityMatrixDrawerAttr
1760 69 62 75 74 65 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 41 74 74 72 69 62 75 74 65 44 72 61 77 65 ibuteDrawer.:.OdinAttributeDrawe
1780 72 3c 44 69 73 61 62 6c 65 55 6e 69 74 79 4d 61 74 72 69 78 44 72 61 77 65 72 41 74 74 72 69 62 r<DisableUnityMatrixDrawerAttrib
17a0 75 74 65 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f ute>......{..........protected.o
17c0 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 verride.void.Initialize().......
17e0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 53 6b 69 70 57 68 65 6e 44 ...{..............this.SkipWhenD
1800 72 61 77 69 6e 67 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 rawing.=.true;..............var.
1820 63 68 61 69 6e 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 63 74 69 76 65 44 chain.=.this.Property.GetActiveD
1840 72 61 77 65 72 43 68 61 69 6e 28 29 2e 42 61 6b 65 64 44 72 61 77 65 72 41 72 72 61 79 3b 0d 0a rawerChain().BakedDrawerArray;..
1860 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 ..............for.(int.i.=.0;.i.
1880 3c 20 63 68 61 69 6e 2e 4c 65 6e 67 74 68 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 <.chain.Length;.i++)............
18a0 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 74 79 70 65 20 3d 20 ..{..................var.type.=.
18c0 63 68 61 69 6e 5b 69 5d 2e 47 65 74 54 79 70 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 chain[i].GetType();.............
18e0 20 20 20 20 20 20 20 69 66 20 28 74 79 70 65 2e 49 73 47 65 6e 65 72 69 63 54 79 70 65 20 26 26 .......if.(type.IsGenericType.&&
1900 20 74 79 70 65 2e 47 65 74 47 65 6e 65 72 69 63 54 79 70 65 44 65 66 69 6e 69 74 69 6f 6e 28 29 .type.GetGenericTypeDefinition()
1920 20 3d 3d 20 74 79 70 65 6f 66 28 55 6e 69 74 79 50 72 6f 70 65 72 74 79 44 72 61 77 65 72 3c 2c .==.typeof(UnityPropertyDrawer<,
1940 3e 29 20 26 26 20 74 79 70 65 2e 47 65 74 47 65 6e 65 72 69 63 41 72 67 75 6d 65 6e 74 73 28 29 >).&&.type.GetGenericArguments()
1960 5b 30 5d 2e 4e 61 6d 65 20 3d 3d 20 22 4d 61 74 72 69 78 44 72 61 77 65 72 22 29 0d 0a 20 20 20 [0].Name.==."MatrixDrawer").....
1980 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
19a0 20 20 20 20 63 68 61 69 6e 5b 69 5d 2e 53 6b 69 70 57 68 65 6e 44 72 61 77 69 6e 67 20 3d 20 74 ....chain[i].SkipWhenDrawing.=.t
19c0 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b rue;......................break;
19e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................}.............
1a00 20 7d 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c .}..........}......}........publ
1a20 69 63 20 63 6c 61 73 73 20 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 20 3a 20 ic.class.MatrixChildAttribute.:.
1a40 41 74 74 72 69 62 75 74 65 20 7b 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 Attribute.{.}........public.clas
1a60 73 20 42 6f 6f 6c 32 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c s.Bool2Drawer.:.OdinValueDrawer<
1a80 62 6f 6f 6c 32 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 bool2>......{..........private.b
1aa0 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 ool.isMatrixChild;............pr
1ac0 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 otected.override.void.Initialize
1ae0 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e ()..........{..............this.
1b00 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 isMatrixChild.=.this.Property.Ge
1b20 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e tAttribute<MatrixChildAttribute>
1b40 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 ().!=.null;..........}..........
1b60 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 ..protected.override.void.DrawPr
1b80 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a opertyLayout(GUIContent.label)..
1ba0 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 ........{..............Rect.labe
1bc0 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 lRect;..............Rect.content
1be0 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 Rect.=.SirenixEditorGUI.BeginHor
1c00 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 izontalPropertyLayout(label,.out
1c20 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 .labelRect);..............{.....
1c40 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 .............var.showLabels.=.!t
1c60 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 his.isMatrixChild.&&.SirenixEdit
1c80 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 orFields.ResponsiveVectorCompone
1ca0 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d ntFields.&&.contentRect.width.>=
1cc0 20 31 30 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 61 62 .100;....................if.(lab
1ce0 65 6c 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a el.!=.null)..................{..
1d00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 ....................GUILayout.Sp
1d20 61 63 65 28 33 29 3b 20 2f 2f 20 55 67 68 2c 20 62 65 74 74 65 72 20 74 68 61 6e 20 6e 6f 74 68 ace(3);.//.Ugh,.better.than.noth
1d40 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 ing..................}..........
1d60 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 70 74 69 6f 6e 73 20 3d 20 47 55 49 4c 61 79 6f 75 ..........var.options.=.GUILayou
1d80 74 4f 70 74 69 6f 6e 73 2e 48 65 69 67 68 74 28 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 tOptions.Height(EditorGUIUtility
1da0 2e 73 69 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 .singleLineHeight);.............
1dc0 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 .......GUIHelper.PushLabelWidth(
1de0 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 SirenixEditorFields.SingleLetter
1e00 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 StructLabelWidth);..............
1e20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 ....EditorGUILayout.BeginVertica
1e40 6c 28 6f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 l(options);..................thi
1e60 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 s.ValueEntry.Property.Children[0
1e80 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 ].Draw(showLabels.?.GUIHelper.Te
1ea0 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 mpContent("X").:.null);.........
1ec0 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 .........EditorGUILayout.EndVert
1ee0 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 ical();..................EditorG
1f00 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 6f 70 74 69 6f 6e 73 29 3b UILayout.BeginVertical(options);
1f20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 ..................this.ValueEntr
1f40 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 y.Property.Children[1].Draw(show
1f60 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 Labels.?.GUIHelper.TempContent("
1f80 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 Y").:.null);..................Ed
1fa0 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 itorGUILayout.EndVertical();....
1fc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c ..............GUIHelper.PopLabel
1fe0 57 69 64 74 68 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 Width();..............}.........
2000 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e .....SirenixEditorGUI.EndHorizon
2020 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d talPropertyLayout();..........}.
2040 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 42 6f 6f 6c 33 .....}........public.class.Bool3
2060 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 62 6f 6f 6c 33 3e 0d Drawer.:.OdinValueDrawer<bool3>.
2080 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d .....{..........private.bool.isM
20a0 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 atrixChild;............protected
20c0 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 .override.void.Initialize().....
20e0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 .....{..............this.isMatri
2100 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 xChild.=.this.Property.GetAttrib
2120 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e ute<MatrixChildAttribute>().!=.n
2140 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 ull;..........}............prote
2160 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c cted.override.void.DrawPropertyL
2180 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 ayout(GUIContent.label).........
21a0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d .{..............Rect.labelRect;.
21c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 .............Rect.contentRect.=.
21e0 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c SirenixEditorGUI.BeginHorizontal
2200 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 PropertyLayout(label,.out.labelR
2220 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 ect);..............{............
2240 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d ......var.showLabels.=.!this.isM
2260 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 atrixChild.&&.SirenixEditorField
2280 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 s.ResponsiveVectorComponentField
22a0 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 30 30 3b 0d 0a s.&&.contentRect.width.>=.100;..
22c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6c 61 62 65 6c 20 21 3d 20 6e ..................if.(label.!=.n
22e0 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ull)..................{.........
2300 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 79 6f 75 74 2e 53 70 61 63 65 28 33 29 3b .............GUILayout.Space(3);
2320 20 2f 2f 20 55 67 68 2c 20 62 65 74 74 65 72 20 74 68 61 6e 20 6e 6f 74 68 69 6e 67 0d 0a 20 20 .//.Ugh,.better.than.nothing....
2340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
2360 20 20 20 76 61 72 20 6f 70 74 69 6f 6e 73 20 3d 20 47 55 49 4c 61 79 6f 75 74 4f 70 74 69 6f 6e ...var.options.=.GUILayoutOption
2380 73 2e 48 65 69 67 68 74 28 45 64 69 74 6f 72 47 55 49 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 s.Height(EditorGUIUtility.single
23a0 4c 69 6e 65 48 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 LineHeight);....................
23c0 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 GUIHelper.PushLabelWidth(Sirenix
23e0 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c EditorFields.SingleLetterStructL
2400 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 abelWidth);..................Edi
2420 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 6f 70 74 69 6f torGUILayout.BeginVertical(optio
2440 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 ns);..................this.Value
2460 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 Entry.Property.Children[0].Draw(
2480 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 showLabels.?.GUIHelper.TempConte
24a0 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nt("X").:.null);................
24c0 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b ..EditorGUILayout.EndVertical();
24e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 ..................EditorGUILayou
2500 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 6f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 t.BeginVertical(options);.......
2520 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 ...........this.ValueEntry.Prope
2540 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 rty.Children[1].Draw(showLabels.
2560 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e ?.GUIHelper.TempContent("Y").:.n
2580 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 ull);..................EditorGUI
25a0 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 Layout.EndVertical();...........
25c0 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 .......EditorGUILayout.BeginVert
25e0 69 63 61 6c 28 6f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ical(options);..................
2600 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 this.ValueEntry.Property.Childre
2620 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 n[2].Draw(showLabels.?.GUIHelper
2640 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 .TempContent("Z").:.null);......
2660 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 ............EditorGUILayout.EndV
2680 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 ertical();..................GUIH
26a0 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 elper.PopLabelWidth();..........
26c0 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 ....}..............SirenixEditor
26e0 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 GUI.EndHorizontalPropertyLayout(
2700 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c );..........}......}........publ
2720 69 63 20 63 6c 61 73 73 20 42 6f 6f 6c 34 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 ic.class.Bool4Drawer.:.OdinValue
2740 44 72 61 77 65 72 3c 62 6f 6f 6c 34 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 Drawer<bool4>......{..........pr
2760 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 ivate.bool.isMatrixChild;.......
2780 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 .....protected.override.void.Ini
27a0 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 tialize()..........{............
27c0 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 ..this.isMatrixChild.=.this.Prop
27e0 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 erty.GetAttribute<MatrixChildAtt
2800 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d ribute>().!=.null;..........}...
2820 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 .........protected.override.void
2840 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c .DrawPropertyLayout(GUIContent.l
2860 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 abel)..........{..............Re
2880 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 ct.labelRect;..............Rect.
28a0 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 contentRect.=.SirenixEditorGUI.B
28c0 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 eginHorizontalPropertyLayout(lab
28e0 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 el,.out.labelRect);.............
2900 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 .{..................var.showLabe
2920 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 ls.=.!this.isMatrixChild.&&.Sire
2940 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 nixEditorFields.ResponsiveVector
2960 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 ComponentFields.&&.contentRect.w
2980 69 64 74 68 20 3e 3d 20 31 30 30 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 idth.>=.100;....................
29a0 69 66 20 28 6c 61 62 65 6c 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 if.(label.!=.null)..............
29c0 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 4c 61 ....{......................GUILa
29e0 79 6f 75 74 2e 53 70 61 63 65 28 33 29 3b 20 2f 2f 20 55 67 68 2c 20 62 65 74 74 65 72 20 74 68 yout.Space(3);.//.Ugh,.better.th
2a00 61 6e 20 6e 6f 74 68 69 6e 67 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d an.nothing..................}...
2a20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 6f 70 74 69 6f 6e 73 20 3d 20 47 .................var.options.=.G
2a40 55 49 4c 61 79 6f 75 74 4f 70 74 69 6f 6e 73 2e 48 65 69 67 68 74 28 45 64 69 74 6f 72 47 55 49 UILayoutOptions.Height(EditorGUI
2a60 55 74 69 6c 69 74 79 2e 73 69 6e 67 6c 65 4c 69 6e 65 48 65 69 67 68 74 29 3b 0d 0a 0d 0a 20 20 Utility.singleLineHeight);......
2a80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 ..............GUIHelper.PushLabe
2aa0 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c lWidth(SirenixEditorFields.Singl
2ac0 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 eLetterStructLabelWidth);.......
2ae0 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e ...........EditorGUILayout.Begin
2b00 56 65 72 74 69 63 61 6c 28 6f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 Vertical(options);..............
2b20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 ....this.ValueEntry.Property.Chi
2b40 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 ldren[0].Draw(showLabels.?.GUIHe
2b60 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a lper.TempContent("X").:.null);..
2b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e ................EditorGUILayout.
2ba0 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 EndVertical();..................
2bc0 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 6f 70 EditorGUILayout.BeginVertical(op
2be0 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 tions);..................this.Va
2c00 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 lueEntry.Property.Children[1].Dr
2c20 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f aw(showLabels.?.GUIHelper.TempCo
2c40 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ntent("Y").:.null);.............
2c60 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c .....EditorGUILayout.EndVertical
2c80 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 ();..................EditorGUILa
2ca0 79 6f 75 74 2e 42 65 67 69 6e 56 65 72 74 69 63 61 6c 28 6f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 yout.BeginVertical(options);....
2cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 ..............this.ValueEntry.Pr
2ce0 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 operty.Children[2].Draw(showLabe
2d00 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 ls.?.GUIHelper.TempContent("Z").
2d20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 :.null);..................Editor
2d40 47 55 49 4c 61 79 6f 75 74 2e 45 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 GUILayout.EndVertical();........
2d60 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 42 65 67 69 6e 56 ..........EditorGUILayout.BeginV
2d80 65 72 74 69 63 61 6c 28 6f 70 74 69 6f 6e 73 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ertical(options);...............
2da0 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c ...this.ValueEntry.Property.Chil
2dc0 64 72 65 6e 5b 33 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c dren[3].Draw(showLabels.?.GUIHel
2de0 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 57 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 per.TempContent("W").:.null);...
2e00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 4c 61 79 6f 75 74 2e 45 ...............EditorGUILayout.E
2e20 6e 64 56 65 72 74 69 63 61 6c 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 ndVertical();..................G
2e40 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 20 20 20 20 20 UIHelper.PopLabelWidth();.......
2e60 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 .......}..............SirenixEdi
2e80 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f torGUI.EndHorizontalPropertyLayo
2ea0 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 ut();..........}......}........p
2ec0 75 62 6c 69 63 20 63 6c 61 73 73 20 46 6c 6f 61 74 32 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 ublic.class.Float2Drawer.:.OdinV
2ee0 61 6c 75 65 44 72 61 77 65 72 3c 66 6c 6f 61 74 32 3e 2c 20 49 44 65 66 69 6e 65 73 47 65 6e 65 alueDrawer<float2>,.IDefinesGene
2f00 72 69 63 4d 65 6e 75 49 74 65 6d 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 ricMenuItems......{..........pri
2f20 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 vate.bool.isMatrixChild;........
2f40 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 ....protected.override.void.Init
2f60 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ialize()..........{.............
2f80 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 .this.isMatrixChild.=.this.Prope
2fa0 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 rty.GetAttribute<MatrixChildAttr
2fc0 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a ibute>().!=.null;..........}....
2fe0 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 ........protected.override.void.
3000 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 DrawPropertyLayout(GUIContent.la
3020 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 bel)..........{..............Rec
3040 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 t.labelRect;..............Rect.c
3060 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 ontentRect.=.SirenixEditorGUI.Be
3080 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 ginHorizontalPropertyLayout(labe
30a0 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 l,.out.labelRect);..............
30c0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 6c 69 64 65 20 72 65 63 74 {..................//.Slide.rect
30e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
3100 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 20 3d 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 .........var.val.=.this.ValueEnt
3120 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ry.SmartValue;..................
3140 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 ....EditorGUI.BeginChangeCheck()
3160 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d ;......................var.vec.=
3180 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 56 65 63 74 6f 72 50 72 65 66 69 .SirenixEditorFields.VectorPrefi
31a0 78 53 6c 69 64 65 52 65 63 74 28 6c 61 62 65 6c 52 65 63 74 2c 20 6e 65 77 20 56 65 63 74 6f 72 xSlideRect(labelRect,.new.Vector
31c0 32 28 76 61 6c 2e 78 2c 20 76 61 6c 2e 79 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 2(val.x,.val.y));...............
31e0 20 20 20 20 20 20 20 76 61 6c 20 3d 20 6e 65 77 20 66 6c 6f 61 74 32 28 76 65 63 2e 78 2c 20 76 .......val.=.new.float2(vec.x,.v
3200 65 63 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 ec.y);......................if.(
3220 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 EditorGUI.EndChangeCheck()).....
3240 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
3260 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 ............this.ValueEntry.Smar
3280 74 56 61 6c 75 65 20 3d 20 76 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tValue.=.val;...................
32a0 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 ...}..................}.........
32c0 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 ...........var.showLabels.=.!thi
32e0 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 s.isMatrixChild.&&.SirenixEditor
3300 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 Fields.ResponsiveVectorComponent
3320 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 Fields.&&.contentRect.width.>=.1
3340 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 85;..................GUIHelper.P
3360 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 ushLabelWidth(SirenixEditorField
3380 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b s.SingleLetterStructLabelWidth);
33a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 ..................this.ValueEntr
33c0 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 y.Property.Children[0].Draw(show
33e0 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 Labels.?.GUIHelper.TempContent("
3400 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 X").:.null);..................th
3420 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b is.ValueEntry.Property.Children[
3440 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 1].Draw(showLabels.?.GUIHelper.T
3460 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 empContent("Y").:.null);........
3480 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 ..........GUIHelper.PopLabelWidt
34a0 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 h();................}...........
34c0 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 ...SirenixEditorGUI.EndHorizonta
34e0 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d lPropertyLayout();..........}...
3500 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 .........///.<summary>..........
3520 2f 2f 2f 20 50 6f 70 75 6c 61 74 65 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6d 65 6e 75 20 66 ///.Populates.the.generic.menu.f
3540 6f 72 20 74 68 65 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f or.the.property...........///.</
3560 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f summary>..........public.void.Po
3580 70 75 6c 61 74 65 47 65 6e 65 72 69 63 4d 65 6e 75 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 pulateGenericMenu(InspectorPrope
35a0 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 47 65 6e 65 72 69 63 4d 65 6e 75 20 67 65 6e 65 72 69 rty.property,.GenericMenu.generi
35c0 63 4d 65 6e 75 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 cMenu)..........{..............f
35e0 6c 6f 61 74 32 20 76 61 6c 75 65 20 3d 20 28 66 6c 6f 61 74 32 29 70 72 6f 70 65 72 74 79 2e 56 loat2.value.=.(float2)property.V
3600 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 alueEntry.WeakSmartValue;.......
3620 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 76 61 6c .......var.vec.=.new.Vector2(val
3640 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 ue.x,.value.y);................i
3660 66 20 28 67 65 6e 65 72 69 63 4d 65 6e 75 2e 47 65 74 49 74 65 6d 43 6f 75 6e 74 28 29 20 3e 20 f.(genericMenu.GetItemCount().>.
3680 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 0)..............{...............
36a0 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b ...genericMenu.AddSeparator("");
36c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e ..............}..............gen
36e0 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 ericMenu.AddItem(new.GUIContent(
3700 22 4e 6f 72 6d 61 6c 69 7a 65 22 29 2c 20 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c "Normalize"),.Mathf.Approximatel
3720 79 28 76 65 63 2e 6d 61 67 6e 69 74 75 64 65 2c 20 31 66 29 2c 20 28 29 20 3d 3e 20 4e 6f 72 6d y(vec.magnitude,.1f),.().=>.Norm
3740 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 20 20 20 20 20 20 alizeEntries(property));........
3760 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 ......genericMenu.AddItem(new.GU
3780 49 43 6f 6e 74 65 6e 74 28 22 5a 65 72 6f 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 IContent("Zero",."Set.the.vector
37a0 20 74 6f 20 28 30 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 7a 65 72 .to.(0,.0)"),.vec.==.Vector2.zer
37c0 6f 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 o,.().=>.SetVector(property,.Vec
37e0 74 6f 72 32 2e 7a 65 72 6f 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 tor2.zero));..............generi
3800 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 6e cMenu.AddItem(new.GUIContent("On
3820 65 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 31 29 22 29 2c e",."Set.the.vector.to.(1,.1)"),
3840 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 6f 6e 65 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 .vec.==.Vector2.one,.().=>.SetVe
3860 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 6f 6e 65 29 29 3b 0d 0a 20 ctor(property,.Vector2.one));...
3880 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 ...........genericMenu.AddSepara
38a0 74 6f 72 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e tor("");..............genericMen
38c0 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 52 69 67 68 74 22 u.AddItem(new.GUIContent("Right"
38e0 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 30 29 22 29 2c 20 76 ,."Set.the.vector.to.(1,.0)"),.v
3900 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 72 69 67 68 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 ec.==.Vector2.right,.().=>.SetVe
3920 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 72 69 67 68 74 29 29 3b 0d ctor(property,.Vector2.right));.
3940 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d .............genericMenu.AddItem
3960 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 65 66 74 22 2c 20 22 53 65 74 20 74 68 65 (new.GUIContent("Left",."Set.the
3980 20 76 65 63 74 6f 72 20 74 6f 20 28 2d 31 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 .vector.to.(-1,.0)"),.vec.==.Vec
39a0 74 6f 72 32 2e 6c 65 66 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 tor2.left,.().=>.SetVector(prope
39c0 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 6c 65 66 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 rty,.Vector2.left));............
39e0 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
3a00 74 65 6e 74 28 22 55 70 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 tent("Up",."Set.the.vector.to.(0
3a20 2c 20 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 75 70 2c 20 28 29 20 3d 3e ,.1)"),.vec.==.Vector2.up,.().=>
3a40 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 75 70 29 .SetVector(property,.Vector2.up)
3a60 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 );..............genericMenu.AddI
3a80 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 44 6f 77 6e 22 2c 20 22 53 65 74 20 tem(new.GUIContent("Down",."Set.
3aa0 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 2d 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 the.vector.to.(0,.-1)"),.vec.==.
3ac0 56 65 63 74 6f 72 32 2e 64 6f 77 6e 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 Vector2.down,.().=>.SetVector(pr
3ae0 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 64 6f 77 6e 29 29 3b 0d 0a 20 20 20 20 20 20 20 operty,.Vector2.down));.........
3b00 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 53 65 74 56 65 .}............private.void.SetVe
3b20 63 74 6f 72 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c ctor(InspectorProperty.property,
3b40 20 56 65 63 74 6f 72 32 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 .Vector2.value)..........{......
3b60 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f ........property.Tree.DelayActio
3b80 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 nUntilRepaint(().=>.............
3ba0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d .{..................for.(int.i.=
3bc0 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 .0;.i.<.property.ValueEntry.Valu
3be0 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d eCount;.i++)..................{.
3c00 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 .....................property.Va
3c20 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6e 65 77 20 66 6c 6f lueEntry.WeakValues[i].=.new.flo
3c40 61 74 32 28 76 61 6c 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 at2(value.x,.value.y);..........
3c60 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 ........}..............});......
3c80 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4e 6f ....}............private.void.No
3ca0 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 rmalizeEntries(InspectorProperty
3cc0 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 .property)..........{...........
3ce0 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 69 ...property.Tree.DelayActionUnti
3d00 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 lRepaint(().=>..............{...
3d20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 ...............for.(int.i.=.0;.i
3d40 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 6e .<.property.ValueEntry.ValueCoun
3d60 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 t;.i++)..................{......
3d80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e ................property.ValueEn
3da0 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6d 61 74 68 2e 6e 6f 72 6d 61 6c 69 try.WeakValues[i].=.math.normali
3dc0 7a 65 73 61 66 65 28 28 66 6c 6f 61 74 32 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 zesafe((float2)property.ValueEnt
3de0 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ry.WeakValues[i]);..............
3e00 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 ....}..............});..........
3e20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 46 6c 6f }......}........public.class.Flo
3e40 61 74 33 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 66 6c 6f 61 at3Drawer.:.OdinValueDrawer<floa
3e60 74 33 3e 2c 20 49 44 65 66 69 6e 65 73 47 65 6e 65 72 69 63 4d 65 6e 75 49 74 65 6d 73 0d 0a 20 t3>,.IDefinesGenericMenuItems...
3e80 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 ...{..........private.bool.isMat
3ea0 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f rixChild;............protected.o
3ec0 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 verride.void.Initialize().......
3ee0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 ...{..............this.isMatrixC
3f00 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 hild.=.this.Property.GetAttribut
3f20 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c e<MatrixChildAttribute>().!=.nul
3f40 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 l;..........}............protect
3f60 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 ed.override.void.DrawPropertyLay
3f80 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b out(GUIContent.label)..........{
3fa0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 ..............Rect.labelRect;...
3fc0 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 ...........Rect.contentRect.=.Si
3fe0 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 renixEditorGUI.BeginHorizontalPr
4000 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 opertyLayout(label,.out.labelRec
4020 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 t);..............{..............
4040 20 20 20 20 2f 2f 20 53 6c 69 64 65 20 72 65 63 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ....//.Slide.rect...............
4060 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 ...{......................var.va
4080 6c 20 3d 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 3b 0d l.=.this.ValueEntry.SmartValue;.
40a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 .....................EditorGUI.B
40c0 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 eginChangeCheck();..............
40e0 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 ........var.vec.=.SirenixEditorF
4100 69 65 6c 64 73 2e 56 65 63 74 6f 72 50 72 65 66 69 78 53 6c 69 64 65 52 65 63 74 28 6c 61 62 65 ields.VectorPrefixSlideRect(labe
4120 6c 52 65 63 74 2c 20 6e 65 77 20 56 65 63 74 6f 72 33 28 76 61 6c 2e 78 2c 20 76 61 6c 2e 79 2c lRect,.new.Vector3(val.x,.val.y,
4140 20 76 61 6c 2e 7a 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 .val.z));......................v
4160 61 6c 20 3d 20 6e 65 77 20 66 6c 6f 61 74 33 28 76 65 63 2e 78 2c 20 76 65 63 2e 79 2c 20 76 65 al.=.new.float3(vec.x,.vec.y,.ve
4180 63 2e 7a 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 c.z);......................if.(E
41a0 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 ditorGUI.EndChangeCheck())......
41c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ................{...............
41e0 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 ...........this.ValueEntry.Smart
4200 56 61 6c 75 65 20 3d 20 76 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Value.=.val;....................
4220 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 ..}..................}..........
4240 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 ..........var.showLabels.=.!this
4260 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 .isMatrixChild.&&.SirenixEditorF
4280 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 ields.ResponsiveVectorComponentF
42a0 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 ields.&&.contentRect.width.>=.18
42c0 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 5;..................GUIHelper.Pu
42e0 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 shLabelWidth(SirenixEditorFields
4300 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d .SingleLetterStructLabelWidth);.
4320 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 .................this.ValueEntry
4340 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c .Property.Children[0].Draw(showL
4360 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 abels.?.GUIHelper.TempContent("X
4380 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 ").:.null);..................thi
43a0 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 s.ValueEntry.Property.Children[1
43c0 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 ].Draw(showLabels.?.GUIHelper.Te
43e0 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 mpContent("Y").:.null);.........
4400 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 .........this.ValueEntry.Propert
4420 79 2e 43 68 69 6c 64 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 y.Children[2].Draw(showLabels.?.
4440 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c GUIHelper.TempContent("Z").:.nul
4460 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 l);..................GUIHelper.P
4480 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d opLabelWidth();................}
44a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 ..............SirenixEditorGUI.E
44c0 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 ndHorizontalPropertyLayout();...
44e0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 .......}............///.<summary
4500 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 50 6f 70 75 6c 61 74 65 73 20 74 68 65 20 67 65 6e >..........///.Populates.the.gen
4520 65 72 69 63 20 6d 65 6e 75 20 66 6f 72 20 74 68 65 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 20 20 eric.menu.for.the.property......
4540 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 .....///.</summary>..........pub
4560 6c 69 63 20 76 6f 69 64 20 50 6f 70 75 6c 61 74 65 47 65 6e 65 72 69 63 4d 65 6e 75 28 49 6e 73 lic.void.PopulateGenericMenu(Ins
4580 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 47 65 6e 65 72 69 63 pectorProperty.property,.Generic
45a0 4d 65 6e 75 20 67 65 6e 65 72 69 63 4d 65 6e 75 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 Menu.genericMenu)..........{....
45c0 20 20 20 20 20 20 20 20 20 20 66 6c 6f 61 74 33 20 76 61 6c 75 65 20 3d 20 28 66 6c 6f 61 74 33 ..........float3.value.=.(float3
45e0 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 53 6d 61 72 74 56 61 )property.ValueEntry.WeakSmartVa
4600 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 6e 65 77 20 lue;..............var.vec.=.new.
4620 56 65 63 74 6f 72 33 28 76 61 6c 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 2c 20 76 61 6c 75 65 2e Vector3(value.x,.value.y,.value.
4640 7a 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 67 65 6e 65 72 69 63 4d 65 z);................if.(genericMe
4660 6e 75 2e 47 65 74 49 74 65 6d 43 6f 75 6e 74 28 29 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 nu.GetItemCount().>.0)..........
4680 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 ....{..................genericMe
46a0 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 nu.AddSeparator("");............
46c0 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 ..}..............genericMenu.Add
46e0 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4e 6f 72 6d 61 6c 69 7a 65 22 29 Item(new.GUIContent("Normalize")
4700 2c 20 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c 79 28 76 65 63 2e 6d 61 67 6e 69 74 ,.Mathf.Approximately(vec.magnit
4720 75 64 65 2c 20 31 66 29 2c 20 28 29 20 3d 3e 20 4e 6f 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 ude,.1f),.().=>.NormalizeEntries
4740 28 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 (property));..............generi
4760 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 5a 65 cMenu.AddItem(new.GUIContent("Ze
4780 72 6f 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 30 2c 20 30 ro",."Set.the.vector.to.(0,.0,.0
47a0 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 2c 20 28 29 20 3d 3e 20 )"),.vec.==.Vector3.zero,.().=>.
47c0 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f SetVector(property,.Vector3.zero
47e0 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 ));..............genericMenu.Add
4800 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 6e 65 22 2c 20 22 53 65 74 20 Item(new.GUIContent("One",."Set.
4820 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 31 2c 20 31 29 22 29 2c 20 76 65 63 20 3d the.vector.to.(1,.1,.1)"),.vec.=
4840 3d 20 56 65 63 74 6f 72 33 2e 6f 6e 65 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 =.Vector3.one,.().=>.SetVector(p
4860 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 6f 6e 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 roperty,.Vector3.one));.........
4880 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 .....genericMenu.AddSeparator(""
48a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 );..............genericMenu.AddI
48c0 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 52 69 67 68 74 22 2c 20 22 53 65 74 tem(new.GUIContent("Right",."Set
48e0 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 30 2c 20 30 29 22 29 2c 20 76 65 63 20 .the.vector.to.(1,.0,.0)"),.vec.
4900 3d 3d 20 56 65 63 74 6f 72 33 2e 72 69 67 68 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f ==.Vector3.right,.().=>.SetVecto
4920 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 72 69 67 68 74 29 29 3b 0d 0a 20 20 r(property,.Vector3.right));....
4940 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 ..........genericMenu.AddItem(ne
4960 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 65 66 74 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 w.GUIContent("Left",."Set.the.ve
4980 63 74 6f 72 20 74 6f 20 28 2d 31 2c 20 30 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 ctor.to.(-1,.0,.0)"),.vec.==.Vec
49a0 74 6f 72 33 2e 6c 65 66 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 tor3.left,.().=>.SetVector(prope
49c0 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 6c 65 66 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 rty,.Vector3.left));............
49e0 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
4a00 74 65 6e 74 28 22 55 70 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 tent("Up",."Set.the.vector.to.(0
4a20 2c 20 31 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 75 70 2c 20 28 29 ,.1,.0)"),.vec.==.Vector3.up,.()
4a40 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e .=>.SetVector(property,.Vector3.
4a60 75 70 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 up));..............genericMenu.A
4a80 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 44 6f 77 6e 22 2c 20 22 53 ddItem(new.GUIContent("Down",."S
4aa0 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 2d 31 2c 20 30 29 22 29 2c 20 76 et.the.vector.to.(0,.-1,.0)"),.v
4ac0 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 64 6f 77 6e 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 ec.==.Vector3.down,.().=>.SetVec
4ae0 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 64 6f 77 6e 29 29 3b 0d 0a 20 tor(property,.Vector3.down));...
4b00 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e ...........genericMenu.AddItem(n
4b20 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 46 6f 72 77 61 72 64 22 2c 20 22 53 65 74 20 74 68 ew.GUIContent("Forward",."Set.th
4b40 65 20 76 65 63 74 6f 72 20 70 72 6f 70 65 72 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 31 29 22 29 e.vector.property.to.(0,.0,.1)")
4b60 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 61 72 64 2c 20 28 29 20 3d 3e 20 ,.vec.==.Vector3.forward,.().=>.
4b80 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 SetVector(property,.Vector3.forw
4ba0 61 72 64 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e ard));..............genericMenu.
4bc0 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 42 61 63 6b 22 2c 20 22 AddItem(new.GUIContent("Back",."
4be0 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 70 72 6f 70 65 72 74 79 20 74 6f 20 28 30 2c 20 30 Set.the.vector.property.to.(0,.0
4c00 2c 20 2d 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 62 61 63 6b 2c 20 28 29 ,.-1)"),.vec.==.Vector3.back,.()
4c20 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e .=>.SetVector(property,.Vector3.
4c40 62 61 63 6b 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 back));..........}............pr
4c60 69 76 61 74 65 20 76 6f 69 64 20 53 65 74 56 65 63 74 6f 72 28 49 6e 73 70 65 63 74 6f 72 50 72 ivate.void.SetVector(InspectorPr
4c80 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 20 76 61 6c 75 65 29 0d operty.property,.Vector3.value).
4ca0 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 .........{..............property
4cc0 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 .Tree.DelayActionUntilRepaint(()
4ce0 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .=>..............{..............
4d00 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 ....for.(int.i.=.0;.i.<.property
4d20 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 .ValueEntry.ValueCount;.i++)....
4d40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............{.................
4d60 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c .....property.ValueEntry.WeakVal
4d80 75 65 73 5b 69 5d 20 3d 20 6e 65 77 20 66 6c 6f 61 74 33 28 76 61 6c 75 65 2e 78 2c 20 76 61 6c ues[i].=.new.float3(value.x,.val
4da0 75 65 2e 79 2c 20 76 61 6c 75 65 2e 7a 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ue.y,.value.z);.................
4dc0 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a .}..............});..........}..
4de0 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4e 6f 72 6d 61 6c 69 7a 65 ..........private.void.Normalize
4e00 45 6e 74 72 69 65 73 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 Entries(InspectorProperty.proper
4e20 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 ty)..........{..............prop
4e40 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 69 6c 52 65 70 61 69 6e erty.Tree.DelayActionUntilRepain
4e60 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 t(().=>..............{..........
4e80 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 ........for.(int.i.=.0;.i.<.prop
4ea0 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 erty.ValueEntry.ValueCount;.i++)
4ec0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
4ee0 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 .........property.ValueEntry.Wea
4f00 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6d 61 74 68 2e 6e 6f 72 6d 61 6c 69 7a 65 73 61 66 65 28 kValues[i].=.math.normalizesafe(
4f20 28 66 6c 6f 61 74 33 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b (float3)property.ValueEntry.Weak
4f40 56 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a Values[i]);..................}..
4f60 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 ............});..........}......
4f80 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 46 6c 6f 61 74 34 44 72 61 77 }........public.class.Float4Draw
4fa0 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 66 6c 6f 61 74 34 3e 2c 20 49 44 er.:.OdinValueDrawer<float4>,.ID
4fc0 65 66 69 6e 65 73 47 65 6e 65 72 69 63 4d 65 6e 75 49 74 65 6d 73 0d 0a 20 20 20 20 7b 0d 0a 20 efinesGenericMenuItems......{...
4fe0 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c .......private.bool.isMatrixChil
5000 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 d;............protected.override
5020 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 .void.Initialize()..........{...
5040 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 ...........this.isMatrixChild.=.
5060 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 this.Property.GetAttribute<Matri
5080 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 xChildAttribute>().!=.null;.....
50a0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 .....}............protected.over
50c0 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 ride.void.DrawPropertyLayout(GUI
50e0 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 Content.label)..........{.......
5100 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 .......Rect.labelRect;..........
5120 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 ....Rect.contentRect.=.SirenixEd
5140 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c itorGUI.BeginHorizontalPropertyL
5160 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 ayout(label,.out.labelRect);....
5180 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 ..........{..................//.
51a0 53 6c 69 64 65 20 72 65 63 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 Slide.rect..................{...
51c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 20 3d 20 74 68 69 ...................var.val.=.thi
51e0 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 s.ValueEntry.SmartValue;........
5200 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 ..............EditorGUI.BeginCha
5220 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ngeCheck();.....................
5240 20 76 61 72 20 76 65 63 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 56 .var.vec.=.SirenixEditorFields.V
5260 65 63 74 6f 72 50 72 65 66 69 78 53 6c 69 64 65 52 65 63 74 28 6c 61 62 65 6c 52 65 63 74 2c 20 ectorPrefixSlideRect(labelRect,.
5280 6e 65 77 20 56 65 63 74 6f 72 34 28 76 61 6c 2e 78 2c 20 76 61 6c 2e 79 2c 20 76 61 6c 2e 7a 2c new.Vector4(val.x,.val.y,.val.z,
52a0 20 76 61 6c 2e 77 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 .val.w));......................v
52c0 61 6c 20 3d 20 6e 65 77 20 66 6c 6f 61 74 34 28 76 65 63 2e 78 2c 20 76 65 63 2e 79 2c 20 76 65 al.=.new.float4(vec.x,.vec.y,.ve
52e0 63 2e 7a 2c 20 76 65 63 2e 77 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 c.z,.vec.w);....................
5300 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 ..if.(EditorGUI.EndChangeCheck()
5320 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 )......................{........
5340 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 ..................this.ValueEntr
5360 79 2e 53 6d 61 72 74 56 61 6c 75 65 20 3d 20 76 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 y.SmartValue.=.val;.............
5380 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d .........}..................}...
53a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 .................var.showLabels.
53c0 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 =.!this.isMatrixChild.&&.Sirenix
53e0 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d EditorFields.ResponsiveVectorCom
5400 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 ponentFields.&&.contentRect.widt
5420 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 h.>=.185;..................GUIHe
5440 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f lper.PushLabelWidth(SirenixEdito
5460 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 rFields.SingleLetterStructLabelW
5480 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c idth);..................this.Val
54a0 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 ueEntry.Property.Children[0].Dra
54c0 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e w(showLabels.?.GUIHelper.TempCon
54e0 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 tent("X").:.null);..............
5500 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 ....this.ValueEntry.Property.Chi
5520 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 ldren[1].Draw(showLabels.?.GUIHe
5540 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a lper.TempContent("Y").:.null);..
5560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e ................this.ValueEntry.
5580 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 Property.Children[2].Draw(showLa
55a0 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 bels.?.GUIHelper.TempContent("Z"
55c0 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 ).:.null);..................this
55e0 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 33 5d .ValueEntry.Property.Children[3]
5600 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d .Draw(showLabels.?.GUIHelper.Tem
5620 70 43 6f 6e 74 65 6e 74 28 22 57 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 pContent("W").:.null);..........
5640 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 ........GUIHelper.PopLabelWidth(
5660 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 );................}.............
5680 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 .SirenixEditorGUI.EndHorizontalP
56a0 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 ropertyLayout();..........}.....
56c0 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f .......///.<summary>..........//
56e0 2f 20 50 6f 70 75 6c 61 74 65 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6d 65 6e 75 20 66 6f 72 /.Populates.the.generic.menu.for
5700 20 74 68 65 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 .the.property...........///.</su
5720 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 70 75 mmary>..........public.void.Popu
5740 6c 61 74 65 47 65 6e 65 72 69 63 4d 65 6e 75 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 lateGenericMenu(InspectorPropert
5760 79 20 70 72 6f 70 65 72 74 79 2c 20 47 65 6e 65 72 69 63 4d 65 6e 75 20 67 65 6e 65 72 69 63 4d y.property,.GenericMenu.genericM
5780 65 6e 75 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6c 6f enu)..........{..............flo
57a0 61 74 34 20 76 61 6c 75 65 20 3d 20 28 66 6c 6f 61 74 34 29 70 72 6f 70 65 72 74 79 2e 56 61 6c at4.value.=.(float4)property.Val
57c0 75 65 45 6e 74 72 79 2e 57 65 61 6b 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 ueEntry.WeakSmartValue;.........
57e0 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 34 28 76 61 6c 75 65 .....var.vec.=.new.Vector4(value
5800 2e 78 2c 20 76 61 6c 75 65 2e 79 2c 20 76 61 6c 75 65 2e 7a 2c 20 76 61 6c 75 65 2e 77 29 3b 0d .x,.value.y,.value.z,.value.w);.
5820 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 67 65 6e 65 72 69 63 4d 65 6e 75 2e 47 ...............if.(genericMenu.G
5840 65 74 49 74 65 6d 43 6f 75 6e 74 28 29 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 etItemCount().>.0)..............
5860 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 {..................genericMenu.A
5880 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d ddSeparator("");..............}.
58a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d .............genericMenu.AddItem
58c0 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4e 6f 72 6d 61 6c 69 7a 65 22 29 2c 20 4d 61 (new.GUIContent("Normalize"),.Ma
58e0 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c 79 28 76 65 63 2e 6d 61 67 6e 69 74 75 64 65 2c thf.Approximately(vec.magnitude,
5900 20 31 66 29 2c 20 28 29 20 3d 3e 20 4e 6f 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 70 72 6f .1f),.().=>.NormalizeEntries(pro
5920 70 65 72 74 79 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e perty));..............genericMen
5940 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 5a 65 72 6f 22 2c u.AddItem(new.GUIContent("Zero",
5960 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 30 2c 20 30 2c 20 30 29 ."Set.the.vector.to.(0,.0,.0,.0)
5980 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 34 2e 7a 65 72 6f 2c 20 28 29 20 3d 3e 20 53 "),.vec.==.Vector4.zero,.().=>.S
59a0 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 29 etVector(property,.Vector3.zero)
59c0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 );..............genericMenu.AddI
59e0 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 6e 65 22 2c 20 22 53 65 74 20 74 tem(new.GUIContent("One",."Set.t
5a00 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 31 2c 20 31 2c 20 31 29 22 29 2c 20 76 65 63 he.vector.to.(1,.1,.1,.1)"),.vec
5a20 20 3d 3d 20 56 65 63 74 6f 72 34 2e 6f 6e 65 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 .==.Vector4.one,.().=>.SetVector
5a40 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 34 2e 6f 6e 65 29 29 3b 0d 0a 20 20 20 20 20 (property,.Vector4.one));.......
5a60 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 .......genericMenu.AddSeparator(
5a80 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 "");..............genericMenu.Ad
5aa0 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 52 69 67 68 74 22 2c 20 22 53 dItem(new.GUIContent("Right",."S
5ac0 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 30 2c 20 30 2c 20 30 29 22 29 2c et.the.vector.to.(1,.0,.0,.0)"),
5ae0 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 72 69 67 68 74 2c 20 .(Vector3)vec.==.Vector3.right,.
5b00 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 ().=>.SetVector(property,.Vector
5b20 33 2e 72 69 67 68 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 3.right));..............genericM
5b40 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 65 66 74 enu.AddItem(new.GUIContent("Left
5b60 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 2d 31 2c 20 30 2c 20 30 2c ",."Set.the.vector.to.(-1,.0,.0,
5b80 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 6c .0)"),.(Vector3)vec.==.Vector3.l
5ba0 65 66 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 eft,.().=>.SetVector(property,.V
5bc0 65 63 74 6f 72 33 2e 6c 65 66 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 ector3.left));..............gene
5be0 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 ricMenu.AddItem(new.GUIContent("
5c00 55 70 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 31 2c 20 30 Up",."Set.the.vector.to.(0,.1,.0
5c20 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e ,.0)"),.(Vector3)vec.==.Vector3.
5c40 75 70 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 up,.().=>.SetVector(property,.Ve
5c60 63 74 6f 72 33 2e 75 70 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 ctor3.up));..............generic
5c80 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 44 6f 77 Menu.AddItem(new.GUIContent("Dow
5ca0 6e 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 2d 31 2c 20 30 n",."Set.the.vector.to.(0,.-1,.0
5cc0 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e ,.0)"),.(Vector3)vec.==.Vector3.
5ce0 64 6f 77 6e 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 down,.().=>.SetVector(property,.
5d00 56 65 63 74 6f 72 33 2e 64 6f 77 6e 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e Vector3.down));..............gen
5d20 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 ericMenu.AddItem(new.GUIContent(
5d40 22 46 6f 72 77 61 72 64 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 70 72 6f 70 65 "Forward",."Set.the.vector.prope
5d60 72 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 31 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 rty.to.(0,.0,.1,.0)"),.(Vector3)
5d80 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 61 72 64 2c 20 28 29 20 3d 3e 20 53 65 vec.==.Vector3.forward,.().=>.Se
5da0 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 61 72 tVector(property,.Vector3.forwar
5dc0 64 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 d));..............genericMenu.Ad
5de0 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 42 61 63 6b 22 2c 20 22 53 65 dItem(new.GUIContent("Back",."Se
5e00 74 20 74 68 65 20 76 65 63 74 6f 72 20 70 72 6f 70 65 72 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 t.the.vector.property.to.(0,.0,.
5e20 2d 31 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 -1,.0)"),.(Vector3)vec.==.Vector
5e40 33 2e 62 61 63 6b 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 3.back,.().=>.SetVector(property
5e60 2c 20 56 65 63 74 6f 72 33 2e 62 61 63 6b 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a ,.Vector3.back));..........}....
5e80 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 53 65 74 56 65 63 74 6f 72 28 49 ........private.void.SetVector(I
5ea0 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f nspectorProperty.property,.Vecto
5ec0 72 34 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 r4.value)..........{............
5ee0 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 69 6c ..property.Tree.DelayActionUntil
5f00 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 Repaint(().=>..............{....
5f20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 ..............for.(int.i.=.0;.i.
5f40 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 6e 74 <.property.ValueEntry.ValueCount
5f60 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ;.i++)..................{.......
5f80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 ...............property.ValueEnt
5fa0 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6e 65 77 20 66 6c 6f 61 74 34 28 76 61 ry.WeakValues[i].=.new.float4(va
5fc0 6c 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 2c 20 76 61 6c 75 65 2e 7a 2c 20 76 61 6c 75 65 2e 77 lue.x,.value.y,.value.z,.value.w
5fe0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 );..................}...........
6000 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 ...});..........}............pri
6020 76 61 74 65 20 76 6f 69 64 20 4e 6f 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 49 6e 73 70 65 vate.void.NormalizeEntries(Inspe
6040 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 ctorProperty.property)..........
6060 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c {..............property.Tree.Del
6080 61 79 41 63 74 69 6f 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 ayActionUntilRepaint(().=>......
60a0 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 ........{..................for.(
60c0 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 int.i.=.0;.i.<.property.ValueEnt
60e0 72 79 2e 56 61 6c 75 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ry.ValueCount;.i++).............
6100 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 .....{......................prop
6120 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 erty.ValueEntry.WeakValues[i].=.
6140 6d 61 74 68 2e 6e 6f 72 6d 61 6c 69 7a 65 73 61 66 65 28 28 66 6c 6f 61 74 34 29 70 72 6f 70 65 math.normalizesafe((float4)prope
6160 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a rty.ValueEntry.WeakValues[i]);..
6180 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d ................}..............}
61a0 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 70 75 );..........}......}..........pu
61c0 62 6c 69 63 20 63 6c 61 73 73 20 44 6f 75 62 6c 65 32 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 blic.class.Double2Drawer.:.OdinV
61e0 61 6c 75 65 44 72 61 77 65 72 3c 64 6f 75 62 6c 65 32 3e 2c 20 49 44 65 66 69 6e 65 73 47 65 6e alueDrawer<double2>,.IDefinesGen
6200 65 72 69 63 4d 65 6e 75 49 74 65 6d 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 ericMenuItems......{..........pr
6220 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 ivate.bool.isMatrixChild;.......
6240 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 .....protected.override.void.Ini
6260 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 tialize()..........{............
6280 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 ..this.isMatrixChild.=.this.Prop
62a0 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 erty.GetAttribute<MatrixChildAtt
62c0 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d ribute>().!=.null;..........}...
62e0 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 .........protected.override.void
6300 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c .DrawPropertyLayout(GUIContent.l
6320 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 abel)..........{..............Re
6340 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 ct.labelRect;..............Rect.
6360 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 contentRect.=.SirenixEditorGUI.B
6380 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 eginHorizontalPropertyLayout(lab
63a0 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 el,.out.labelRect);.............
63c0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 6c 69 64 65 20 72 65 63 .{..................//.Slide.rec
63e0 74 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 t..................{............
6400 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 20 3d 20 74 68 69 73 2e 56 61 6c 75 65 45 6e ..........var.val.=.this.ValueEn
6420 74 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 try.SmartValue;.................
6440 20 20 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 .....EditorGUI.BeginChangeCheck(
6460 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 );......................var.vec.
6480 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 56 65 63 74 6f 72 50 72 65 66 =.SirenixEditorFields.VectorPref
64a0 69 78 53 6c 69 64 65 52 65 63 74 28 6c 61 62 65 6c 52 65 63 74 2c 20 6e 65 77 20 56 65 63 74 6f ixSlideRect(labelRect,.new.Vecto
64c0 72 32 28 28 66 6c 6f 61 74 29 76 61 6c 2e 78 2c 20 28 66 6c 6f 61 74 29 76 61 6c 2e 79 29 29 3b r2((float)val.x,.(float)val.y));
64e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 20 3d 20 6e 65 77 20 ......................val.=.new.
6500 64 6f 75 62 6c 65 32 28 76 65 63 2e 78 2c 20 76 65 63 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 20 double2(vec.x,.vec.y);..........
6520 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 43 68 61 ............if.(EditorGUI.EndCha
6540 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ngeCheck()).....................
6560 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 .{..........................this
6580 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 20 3d 20 76 61 6c 3b 0d 0a 20 .ValueEntry.SmartValue.=.val;...
65a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ...................}............
65c0 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 ......}....................var.s
65e0 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 howLabels.=.!this.isMatrixChild.
6600 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 &&.SirenixEditorFields.Responsiv
6620 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e eVectorComponentFields.&&.conten
6640 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tRect.width.>=.185;.............
6660 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 .....GUIHelper.PushLabelWidth(Si
6680 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 renixEditorFields.SingleLetterSt
66a0 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ructLabelWidth);................
66c0 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 ..this.ValueEntry.Property.Child
66e0 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 ren[0].Draw(showLabels.?.GUIHelp
6700 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 er.TempContent("X").:.null);....
6720 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 ..............this.ValueEntry.Pr
6740 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 operty.Children[1].Draw(showLabe
6760 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 ls.?.GUIHelper.TempContent("Y").
6780 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c :.null);..................GUIHel
67a0 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 per.PopLabelWidth();............
67c0 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 ....}..............SirenixEditor
67e0 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 GUI.EndHorizontalPropertyLayout(
6800 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 );..........}............///.<su
6820 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 50 6f 70 75 6c 61 74 65 73 20 74 68 mmary>..........///.Populates.th
6840 65 20 67 65 6e 65 72 69 63 20 6d 65 6e 75 20 66 6f 72 20 74 68 65 20 70 72 6f 70 65 72 74 79 2e e.generic.menu.for.the.property.
6860 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ..........///.</summary>........
6880 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 70 75 6c 61 74 65 47 65 6e 65 72 69 63 4d 65 6e ..public.void.PopulateGenericMen
68a0 75 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 47 65 u(InspectorProperty.property,.Ge
68c0 6e 65 72 69 63 4d 65 6e 75 20 67 65 6e 65 72 69 63 4d 65 6e 75 29 0d 0a 20 20 20 20 20 20 20 20 nericMenu.genericMenu)..........
68e0 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 6f 75 62 6c 65 32 20 76 61 6c 75 65 20 3d 20 28 {..............double2.value.=.(
6900 64 6f 75 62 6c 65 32 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b double2)property.ValueEntry.Weak
6920 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 SmartValue;..............var.vec
6940 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 32 28 28 66 6c 6f 61 74 29 76 61 6c 75 65 2e 78 2c 20 28 .=.new.Vector2((float)value.x,.(
6960 66 6c 6f 61 74 29 76 61 6c 75 65 2e 79 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 float)value.y);................i
6980 66 20 28 67 65 6e 65 72 69 63 4d 65 6e 75 2e 47 65 74 49 74 65 6d 43 6f 75 6e 74 28 29 20 3e 20 f.(genericMenu.GetItemCount().>.
69a0 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 0)..............{...............
69c0 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b ...genericMenu.AddSeparator("");
69e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e ..............}..............gen
6a00 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 ericMenu.AddItem(new.GUIContent(
6a20 22 4e 6f 72 6d 61 6c 69 7a 65 22 29 2c 20 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c "Normalize"),.Mathf.Approximatel
6a40 79 28 76 65 63 2e 6d 61 67 6e 69 74 75 64 65 2c 20 31 66 29 2c 20 28 29 20 3d 3e 20 4e 6f 72 6d y(vec.magnitude,.1f),.().=>.Norm
6a60 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 20 20 20 20 20 20 alizeEntries(property));........
6a80 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 ......genericMenu.AddItem(new.GU
6aa0 49 43 6f 6e 74 65 6e 74 28 22 5a 65 72 6f 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 IContent("Zero",."Set.the.vector
6ac0 20 74 6f 20 28 30 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 7a 65 72 .to.(0,.0)"),.vec.==.Vector2.zer
6ae0 6f 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 o,.().=>.SetVector(property,.Vec
6b00 74 6f 72 32 2e 7a 65 72 6f 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 tor2.zero));..............generi
6b20 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4f 6e cMenu.AddItem(new.GUIContent("On
6b40 65 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 31 29 22 29 2c e",."Set.the.vector.to.(1,.1)"),
6b60 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 6f 6e 65 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 .vec.==.Vector2.one,.().=>.SetVe
6b80 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 6f 6e 65 29 29 3b 0d 0a 20 ctor(property,.Vector2.one));...
6ba0 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 ...........genericMenu.AddSepara
6bc0 74 6f 72 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e tor("");..............genericMen
6be0 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 52 69 67 68 74 22 u.AddItem(new.GUIContent("Right"
6c00 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c 20 30 29 22 29 2c 20 76 ,."Set.the.vector.to.(1,.0)"),.v
6c20 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 72 69 67 68 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 ec.==.Vector2.right,.().=>.SetVe
6c40 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 72 69 67 68 74 29 29 3b 0d ctor(property,.Vector2.right));.
6c60 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d .............genericMenu.AddItem
6c80 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 65 66 74 22 2c 20 22 53 65 74 20 74 68 65 (new.GUIContent("Left",."Set.the
6ca0 20 76 65 63 74 6f 72 20 74 6f 20 28 2d 31 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 .vector.to.(-1,.0)"),.vec.==.Vec
6cc0 74 6f 72 32 2e 6c 65 66 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 tor2.left,.().=>.SetVector(prope
6ce0 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 6c 65 66 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 rty,.Vector2.left));............
6d00 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
6d20 74 65 6e 74 28 22 55 70 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 tent("Up",."Set.the.vector.to.(0
6d40 2c 20 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 32 2e 75 70 2c 20 28 29 20 3d 3e ,.1)"),.vec.==.Vector2.up,.().=>
6d60 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 75 70 29 .SetVector(property,.Vector2.up)
6d80 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 );..............genericMenu.AddI
6da0 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 44 6f 77 6e 22 2c 20 22 53 65 74 20 tem(new.GUIContent("Down",."Set.
6dc0 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 2d 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 the.vector.to.(0,.-1)"),.vec.==.
6de0 56 65 63 74 6f 72 32 2e 64 6f 77 6e 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 Vector2.down,.().=>.SetVector(pr
6e00 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 32 2e 64 6f 77 6e 29 29 3b 0d 0a 20 20 20 20 20 20 20 operty,.Vector2.down));.........
6e20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 53 65 74 56 65 .}............private.void.SetVe
6e40 63 74 6f 72 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c ctor(InspectorProperty.property,
6e60 20 56 65 63 74 6f 72 32 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 .Vector2.value)..........{......
6e80 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f ........property.Tree.DelayActio
6ea0 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 nUntilRepaint(().=>.............
6ec0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d .{..................for.(int.i.=
6ee0 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 .0;.i.<.property.ValueEntry.Valu
6f00 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d eCount;.i++)..................{.
6f20 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 .....................property.Va
6f40 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6e 65 77 20 64 6f 75 lueEntry.WeakValues[i].=.new.dou
6f60 62 6c 65 32 28 76 61 6c 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 29 3b 0d 0a 20 20 20 20 20 20 20 ble2(value.x,.value.y);.........
6f80 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 .........}..............});.....
6fa0 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4e .....}............private.void.N
6fc0 6f 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 ormalizeEntries(InspectorPropert
6fe0 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 y.property)..........{..........
7000 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 ....property.Tree.DelayActionUnt
7020 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a ilRepaint(().=>..............{..
7040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 ................for.(int.i.=.0;.
7060 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 i.<.property.ValueEntry.ValueCou
7080 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 nt;.i++)..................{.....
70a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 .................property.ValueE
70c0 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6d 61 74 68 2e 6e 6f 72 6d 61 6c ntry.WeakValues[i].=.math.normal
70e0 69 7a 65 73 61 66 65 28 28 64 6f 75 62 6c 65 32 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 izesafe((double2)property.ValueE
7100 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ntry.WeakValues[i]);............
7120 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 ......}..............});........
7140 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 44 ..}......}........public.class.D
7160 6f 75 62 6c 65 33 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 64 ouble3Drawer.:.OdinValueDrawer<d
7180 6f 75 62 6c 65 33 3e 2c 20 49 44 65 66 69 6e 65 73 47 65 6e 65 72 69 63 4d 65 6e 75 49 74 65 6d ouble3>,.IDefinesGenericMenuItem
71a0 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 s......{..........private.bool.i
71c0 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 sMatrixChild;............protect
71e0 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 ed.override.void.Initialize()...
7200 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 .......{..............this.isMat
7220 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 rixChild.=.this.Property.GetAttr
7240 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d ibute<MatrixChildAttribute>().!=
7260 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f .null;..........}............pro
7280 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 tected.override.void.DrawPropert
72a0 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 yLayout(GUIContent.label).......
72c0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 ...{..............Rect.labelRect
72e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 ;..............Rect.contentRect.
7300 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 =.SirenixEditorGUI.BeginHorizont
7320 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 alPropertyLayout(label,.out.labe
7340 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 lRect);..............{..........
7360 20 20 20 20 20 20 20 20 2f 2f 20 53 6c 69 64 65 20 72 65 63 74 0d 0a 20 20 20 20 20 20 20 20 20 ........//.Slide.rect...........
7380 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 .......{......................va
73a0 72 20 76 61 6c 20 3d 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 56 61 6c r.val.=.this.ValueEntry.SmartVal
73c0 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 64 69 74 6f 72 47 ue;......................EditorG
73e0 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 UI.BeginChangeCheck();..........
7400 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 53 69 72 65 6e 69 78 45 64 69 ............var.vec.=.SirenixEdi
7420 74 6f 72 46 69 65 6c 64 73 2e 56 65 63 74 6f 72 50 72 65 66 69 78 53 6c 69 64 65 52 65 63 74 28 torFields.VectorPrefixSlideRect(
7440 6c 61 62 65 6c 52 65 63 74 2c 20 6e 65 77 20 56 65 63 74 6f 72 33 28 28 66 6c 6f 61 74 29 76 61 labelRect,.new.Vector3((float)va
7460 6c 2e 78 2c 20 28 66 6c 6f 61 74 29 76 61 6c 2e 79 2c 20 28 66 6c 6f 61 74 29 76 61 6c 2e 7a 29 l.x,.(float)val.y,.(float)val.z)
7480 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 20 3d 20 6e 65 );......................val.=.ne
74a0 77 20 64 6f 75 62 6c 65 33 28 76 65 63 2e 78 2c 20 76 65 63 2e 79 2c 20 76 65 63 2e 7a 29 3b 0d w.double3(vec.x,.vec.y,.vec.z);.
74c0 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 .....................if.(EditorG
74e0 55 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 UI.EndChangeCheck())............
7500 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........{.....................
7520 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 20 .....this.ValueEntry.SmartValue.
7540 3d 20 76 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 =.val;......................}...
7560 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ...............}................
7580 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 ....var.showLabels.=.!this.isMat
75a0 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e rixChild.&&.SirenixEditorFields.
75c0 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 ResponsiveVectorComponentFields.
75e0 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 &&.contentRect.width.>=.185;....
7600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 ..............GUIHelper.PushLabe
7620 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c lWidth(SirenixEditorFields.Singl
7640 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 eLetterStructLabelWidth);.......
7660 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 ...........this.ValueEntry.Prope
7680 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 rty.Children[0].Draw(showLabels.
76a0 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e ?.GUIHelper.TempContent("X").:.n
76c0 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 ull);..................this.Valu
76e0 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 eEntry.Property.Children[1].Draw
7700 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 (showLabels.?.GUIHelper.TempCont
7720 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ent("Y").:.null);...............
7740 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c ...this.ValueEntry.Property.Chil
7760 64 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c dren[2].Draw(showLabels.?.GUIHel
7780 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 per.TempContent("Z").:.null);...
77a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 ...............GUIHelper.PopLabe
77c0 6c 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 lWidth();................}......
77e0 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 ........SirenixEditorGUI.EndHori
7800 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 zontalPropertyLayout();.........
7820 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 .}............///.<summary>.....
7840 20 20 20 20 20 2f 2f 2f 20 50 6f 70 75 6c 61 74 65 73 20 74 68 65 20 67 65 6e 65 72 69 63 20 6d .....///.Populates.the.generic.m
7860 65 6e 75 20 66 6f 72 20 74 68 65 20 70 72 6f 70 65 72 74 79 2e 0d 0a 20 20 20 20 20 20 20 20 2f enu.for.the.property.........../
7880 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 76 6f //.</summary>..........public.vo
78a0 69 64 20 50 6f 70 75 6c 61 74 65 47 65 6e 65 72 69 63 4d 65 6e 75 28 49 6e 73 70 65 63 74 6f 72 id.PopulateGenericMenu(Inspector
78c0 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 47 65 6e 65 72 69 63 4d 65 6e 75 20 67 Property.property,.GenericMenu.g
78e0 65 6e 65 72 69 63 4d 65 6e 75 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 enericMenu)..........{..........
7900 20 20 20 20 64 6f 75 62 6c 65 33 20 76 61 6c 75 65 20 3d 20 28 64 6f 75 62 6c 65 33 29 70 72 6f ....double3.value.=.(double3)pro
7920 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 53 6d 61 72 74 56 61 6c 75 65 3b perty.ValueEntry.WeakSmartValue;
7940 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 6e 65 77 20 56 65 63 74 ..............var.vec.=.new.Vect
7960 6f 72 33 28 28 66 6c 6f 61 74 29 76 61 6c 75 65 2e 78 2c 20 28 66 6c 6f 61 74 29 76 61 6c 75 65 or3((float)value.x,.(float)value
7980 2e 79 2c 20 28 66 6c 6f 61 74 29 76 61 6c 75 65 2e 7a 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .y,.(float)value.z);............
79a0 20 20 20 20 69 66 20 28 67 65 6e 65 72 69 63 4d 65 6e 75 2e 47 65 74 49 74 65 6d 43 6f 75 6e 74 ....if.(genericMenu.GetItemCount
79c0 28 29 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 ().>.0)..............{..........
79e0 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 ........genericMenu.AddSeparator
7a00 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ("");..............}............
7a20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
7a40 74 65 6e 74 28 22 4e 6f 72 6d 61 6c 69 7a 65 22 29 2c 20 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 tent("Normalize"),.Mathf.Approxi
7a60 6d 61 74 65 6c 79 28 76 65 63 2e 6d 61 67 6e 69 74 75 64 65 2c 20 31 66 29 2c 20 28 29 20 3d 3e mately(vec.magnitude,.1f),.().=>
7a80 20 4e 6f 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 20 .NormalizeEntries(property));...
7aa0 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e ...........genericMenu.AddItem(n
7ac0 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 5a 65 72 6f 22 2c 20 22 53 65 74 20 74 68 65 20 76 ew.GUIContent("Zero",."Set.the.v
7ae0 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 30 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 ector.to.(0,.0,.0)"),.vec.==.Vec
7b00 74 6f 72 33 2e 7a 65 72 6f 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 tor3.zero,.().=>.SetVector(prope
7b20 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 rty,.Vector3.zero));............
7b40 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
7b60 74 65 6e 74 28 22 4f 6e 65 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 tent("One",."Set.the.vector.to.(
7b80 31 2c 20 31 2c 20 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 6f 6e 65 2c 20 1,.1,.1)"),.vec.==.Vector3.one,.
7ba0 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 ().=>.SetVector(property,.Vector
7bc0 33 2e 6f 6e 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 3.one));..............genericMen
7be0 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 u.AddSeparator("");.............
7c00 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 .genericMenu.AddItem(new.GUICont
7c20 65 6e 74 28 22 52 69 67 68 74 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 ent("Right",."Set.the.vector.to.
7c40 28 31 2c 20 30 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 72 69 67 68 (1,.0,.0)"),.vec.==.Vector3.righ
7c60 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 t,.().=>.SetVector(property,.Vec
7c80 74 6f 72 33 2e 72 69 67 68 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 tor3.right));..............gener
7ca0 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c icMenu.AddItem(new.GUIContent("L
7cc0 65 66 74 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 2d 31 2c 20 30 2c eft",."Set.the.vector.to.(-1,.0,
7ce0 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 6c 65 66 74 2c 20 28 29 20 3d .0)"),.vec.==.Vector3.left,.().=
7d00 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 6c 65 >.SetVector(property,.Vector3.le
7d20 66 74 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 ft));..............genericMenu.A
7d40 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 55 70 22 2c 20 22 53 65 74 ddItem(new.GUIContent("Up",."Set
7d60 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 30 2c 20 31 2c 20 30 29 22 29 2c 20 76 65 63 20 .the.vector.to.(0,.1,.0)"),.vec.
7d80 3d 3d 20 56 65 63 74 6f 72 33 2e 75 70 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 ==.Vector3.up,.().=>.SetVector(p
7da0 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 75 70 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 roperty,.Vector3.up));..........
7dc0 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 ....genericMenu.AddItem(new.GUIC
7de0 6f 6e 74 65 6e 74 28 22 44 6f 77 6e 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 ontent("Down",."Set.the.vector.t
7e00 6f 20 28 30 2c 20 2d 31 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 64 o.(0,.-1,.0)"),.vec.==.Vector3.d
7e20 6f 77 6e 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 own,.().=>.SetVector(property,.V
7e40 65 63 74 6f 72 33 2e 64 6f 77 6e 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 ector3.down));..............gene
7e60 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 ricMenu.AddItem(new.GUIContent("
7e80 46 6f 72 77 61 72 64 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 70 72 6f 70 65 72 Forward",."Set.the.vector.proper
7ea0 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 ty.to.(0,.0,.1)"),.vec.==.Vector
7ec0 33 2e 66 6f 72 77 61 72 64 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 3.forward,.().=>.SetVector(prope
7ee0 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 61 72 64 29 29 3b 0d 0a 20 20 20 20 20 20 20 rty,.Vector3.forward));.........
7f00 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 .....genericMenu.AddItem(new.GUI
7f20 43 6f 6e 74 65 6e 74 28 22 42 61 63 6b 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 Content("Back",."Set.the.vector.
7f40 70 72 6f 70 65 72 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 2d 31 29 22 29 2c 20 76 65 63 20 3d 3d property.to.(0,.0,.-1)"),.vec.==
7f60 20 56 65 63 74 6f 72 33 2e 62 61 63 6b 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 .Vector3.back,.().=>.SetVector(p
7f80 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 62 61 63 6b 29 29 3b 0d 0a 20 20 20 20 20 20 roperty,.Vector3.back));........
7fa0 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 53 65 74 56 ..}............private.void.SetV
7fc0 65 63 74 6f 72 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 ector(InspectorProperty.property
7fe0 2c 20 56 65 63 74 6f 72 33 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 ,.Vector3.value)..........{.....
8000 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 .........property.Tree.DelayActi
8020 6f 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 onUntilRepaint(().=>............
8040 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 ..{..................for.(int.i.
8060 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c =.0;.i.<.property.ValueEntry.Val
8080 75 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b ueCount;.i++)..................{
80a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 ......................property.V
80c0 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6e 65 77 20 64 6f alueEntry.WeakValues[i].=.new.do
80e0 75 62 6c 65 33 28 76 61 6c 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 2c 20 76 61 6c 75 65 2e 7a 29 uble3(value.x,.value.y,.value.z)
8100 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 ;..................}............
8120 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 ..});..........}............priv
8140 61 74 65 20 76 6f 69 64 20 4e 6f 72 6d 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 49 6e 73 70 65 63 ate.void.NormalizeEntries(Inspec
8160 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b torProperty.property)..........{
8180 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 ..............property.Tree.Dela
81a0 79 41 63 74 69 6f 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 yActionUntilRepaint(().=>.......
81c0 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 .......{..................for.(i
81e0 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 nt.i.=.0;.i.<.property.ValueEntr
8200 79 2e 56 61 6c 75 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 y.ValueCount;.i++)..............
8220 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 ....{......................prope
8240 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6d rty.ValueEntry.WeakValues[i].=.m
8260 61 74 68 2e 6e 6f 72 6d 61 6c 69 7a 65 73 61 66 65 28 28 64 6f 75 62 6c 65 33 29 70 72 6f 70 65 ath.normalizesafe((double3)prope
8280 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a rty.ValueEntry.WeakValues[i]);..
82a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d ................}..............}
82c0 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c );..........}......}........publ
82e0 69 63 20 63 6c 61 73 73 20 44 6f 75 62 6c 65 34 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c ic.class.Double4Drawer.:.OdinVal
8300 75 65 44 72 61 77 65 72 3c 64 6f 75 62 6c 65 34 3e 2c 20 49 44 65 66 69 6e 65 73 47 65 6e 65 72 ueDrawer<double4>,.IDefinesGener
8320 69 63 4d 65 6e 75 49 74 65 6d 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 icMenuItems......{..........priv
8340 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 ate.bool.isMatrixChild;.........
8360 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 ...protected.override.void.Initi
8380 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 alize()..........{..............
83a0 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 this.isMatrixChild.=.this.Proper
83c0 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 ty.GetAttribute<MatrixChildAttri
83e0 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 bute>().!=.null;..........}.....
8400 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 .......protected.override.void.D
8420 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 rawPropertyLayout(GUIContent.lab
8440 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 el)..........{..............Rect
8460 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f .labelRect;..............Rect.co
8480 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 ntentRect.=.SirenixEditorGUI.Beg
84a0 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c inHorizontalPropertyLayout(label
84c0 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b ,.out.labelRect);..............{
84e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 6c 69 64 65 20 72 65 63 74 0d ..................//.Slide.rect.
8500 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................{..............
8520 20 20 20 20 20 20 20 20 76 61 72 20 76 61 6c 20 3d 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 ........var.val.=.this.ValueEntr
8540 79 2e 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 y.SmartValue;...................
8560 20 20 20 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 43 68 61 6e 67 65 43 68 65 63 6b 28 29 3b ...EditorGUI.BeginChangeCheck();
8580 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 20 3d 20 ......................var.vec.=.
85a0 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 56 65 63 74 6f 72 50 72 65 66 69 78 SirenixEditorFields.VectorPrefix
85c0 53 6c 69 64 65 52 65 63 74 28 6c 61 62 65 6c 52 65 63 74 2c 20 6e 65 77 20 56 65 63 74 6f 72 34 SlideRect(labelRect,.new.Vector4
85e0 28 28 66 6c 6f 61 74 29 76 61 6c 2e 78 2c 20 28 66 6c 6f 61 74 29 76 61 6c 2e 79 2c 20 28 66 6c ((float)val.x,.(float)val.y,.(fl
8600 6f 61 74 29 76 61 6c 2e 7a 2c 20 28 66 6c 6f 61 74 29 76 61 6c 2e 77 29 29 3b 0d 0a 20 20 20 20 oat)val.z,.(float)val.w));......
8620 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 6c 20 3d 20 6e 65 77 20 64 6f 75 62 6c 65 ................val.=.new.double
8640 34 28 76 65 63 2e 78 2c 20 76 65 63 2e 79 2c 20 76 65 63 2e 7a 2c 20 76 65 63 2e 77 29 3b 0d 0a 4(vec.x,.vec.y,.vec.z,.vec.w);..
8660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 45 64 69 74 6f 72 47 55 ....................if.(EditorGU
8680 49 2e 45 6e 64 43 68 61 6e 67 65 43 68 65 63 6b 28 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 I.EndChangeCheck()).............
86a0 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .........{......................
86c0 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 53 6d 61 72 74 56 61 6c 75 65 20 3d ....this.ValueEntry.SmartValue.=
86e0 20 76 61 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 .val;......................}....
8700 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..............}.................
8720 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 72 ...var.showLabels.=.!this.isMatr
8740 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 52 ixChild.&&.SirenixEditorFields.R
8760 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 26 esponsiveVectorComponentFields.&
8780 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 20 &.contentRect.width.>=.185;.....
87a0 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c .............GUIHelper.PushLabel
87c0 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 Width(SirenixEditorFields.Single
87e0 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 LetterStructLabelWidth);........
8800 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 ..........this.ValueEntry.Proper
8820 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f ty.Children[0].Draw(showLabels.?
8840 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 .GUIHelper.TempContent("X").:.nu
8860 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 ll);..................this.Value
8880 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 Entry.Property.Children[1].Draw(
88a0 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 showLabels.?.GUIHelper.TempConte
88c0 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nt("Y").:.null);................
88e0 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 ..this.ValueEntry.Property.Child
8900 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 ren[2].Draw(showLabels.?.GUIHelp
8920 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 er.TempContent("Z").:.null);....
8940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 ..............this.ValueEntry.Pr
8960 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 33 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 operty.Children[3].Draw(showLabe
8980 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 57 22 29 20 ls.?.GUIHelper.TempContent("W").
89a0 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c :.null);..................GUIHel
89c0 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 per.PopLabelWidth();............
89e0 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 ....}..............SirenixEditor
8a00 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 GUI.EndHorizontalPropertyLayout(
8a20 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 );..........}............///.<su
8a40 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 50 6f 70 75 6c 61 74 65 73 20 74 68 mmary>..........///.Populates.th
8a60 65 20 67 65 6e 65 72 69 63 20 6d 65 6e 75 20 66 6f 72 20 74 68 65 20 70 72 6f 70 65 72 74 79 2e e.generic.menu.for.the.property.
8a80 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 ..........///.</summary>........
8aa0 20 20 70 75 62 6c 69 63 20 76 6f 69 64 20 50 6f 70 75 6c 61 74 65 47 65 6e 65 72 69 63 4d 65 6e ..public.void.PopulateGenericMen
8ac0 75 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 6f 70 65 72 74 79 2c 20 47 65 u(InspectorProperty.property,.Ge
8ae0 6e 65 72 69 63 4d 65 6e 75 20 67 65 6e 65 72 69 63 4d 65 6e 75 29 0d 0a 20 20 20 20 20 20 20 20 nericMenu.genericMenu)..........
8b00 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 64 6f 75 62 6c 65 34 20 76 61 6c 75 65 20 3d 20 28 {..............double4.value.=.(
8b20 64 6f 75 62 6c 65 34 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b double4)property.ValueEntry.Weak
8b40 53 6d 61 72 74 56 61 6c 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 76 65 63 SmartValue;..............var.vec
8b60 20 3d 20 6e 65 77 20 56 65 63 74 6f 72 34 28 28 66 6c 6f 61 74 29 76 61 6c 75 65 2e 78 2c 20 28 .=.new.Vector4((float)value.x,.(
8b80 66 6c 6f 61 74 29 76 61 6c 75 65 2e 79 2c 20 28 66 6c 6f 61 74 29 76 61 6c 75 65 2e 7a 2c 20 28 float)value.y,.(float)value.z,.(
8ba0 66 6c 6f 61 74 29 76 61 6c 75 65 2e 77 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 float)value.w);................i
8bc0 66 20 28 67 65 6e 65 72 69 63 4d 65 6e 75 2e 47 65 74 49 74 65 6d 43 6f 75 6e 74 28 29 20 3e 20 f.(genericMenu.GetItemCount().>.
8be0 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 0)..............{...............
8c00 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b ...genericMenu.AddSeparator("");
8c20 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e ..............}..............gen
8c40 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 ericMenu.AddItem(new.GUIContent(
8c60 22 4e 6f 72 6d 61 6c 69 7a 65 22 29 2c 20 4d 61 74 68 66 2e 41 70 70 72 6f 78 69 6d 61 74 65 6c "Normalize"),.Mathf.Approximatel
8c80 79 28 76 65 63 2e 6d 61 67 6e 69 74 75 64 65 2c 20 31 66 29 2c 20 28 29 20 3d 3e 20 4e 6f 72 6d y(vec.magnitude,.1f),.().=>.Norm
8ca0 61 6c 69 7a 65 45 6e 74 72 69 65 73 28 70 72 6f 70 65 72 74 79 29 29 3b 0d 0a 20 20 20 20 20 20 alizeEntries(property));........
8cc0 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 ......genericMenu.AddItem(new.GU
8ce0 49 43 6f 6e 74 65 6e 74 28 22 5a 65 72 6f 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 IContent("Zero",."Set.the.vector
8d00 20 74 6f 20 28 30 2c 20 30 2c 20 30 2c 20 30 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f .to.(0,.0,.0,.0)"),.vec.==.Vecto
8d20 72 34 2e 7a 65 72 6f 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 r4.zero,.().=>.SetVector(propert
8d40 79 2c 20 56 65 63 74 6f 72 33 2e 7a 65 72 6f 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 y,.Vector3.zero));..............
8d60 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 genericMenu.AddItem(new.GUIConte
8d80 6e 74 28 22 4f 6e 65 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f 20 28 31 2c nt("One",."Set.the.vector.to.(1,
8da0 20 31 2c 20 31 2c 20 31 29 22 29 2c 20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 34 2e 6f 6e 65 2c .1,.1,.1)"),.vec.==.Vector4.one,
8dc0 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f .().=>.SetVector(property,.Vecto
8de0 72 34 2e 6f 6e 65 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 r4.one));..............genericMe
8e00 6e 75 2e 41 64 64 53 65 70 61 72 61 74 6f 72 28 22 22 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 nu.AddSeparator("");............
8e20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
8e40 74 65 6e 74 28 22 52 69 67 68 74 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 74 6f tent("Right",."Set.the.vector.to
8e60 20 28 31 2c 20 30 2c 20 30 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d .(1,.0,.0,.0)"),.(Vector3)vec.==
8e80 20 56 65 63 74 6f 72 33 2e 72 69 67 68 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 .Vector3.right,.().=>.SetVector(
8ea0 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 72 69 67 68 74 29 29 3b 0d 0a 20 20 20 20 property,.Vector3.right));......
8ec0 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 ........genericMenu.AddItem(new.
8ee0 47 55 49 43 6f 6e 74 65 6e 74 28 22 4c 65 66 74 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 GUIContent("Left",."Set.the.vect
8f00 6f 72 20 74 6f 20 28 2d 31 2c 20 30 2c 20 30 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 or.to.(-1,.0,.0,.0)"),.(Vector3)
8f20 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 6c 65 66 74 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 vec.==.Vector3.left,.().=>.SetVe
8f40 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 6c 65 66 74 29 29 3b 0d 0a ctor(property,.Vector3.left));..
8f60 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 ............genericMenu.AddItem(
8f80 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 55 70 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 new.GUIContent("Up",."Set.the.ve
8fa0 63 74 6f 72 20 74 6f 20 28 30 2c 20 31 2c 20 30 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 ctor.to.(0,.1,.0,.0)"),.(Vector3
8fc0 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 75 70 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 )vec.==.Vector3.up,.().=>.SetVec
8fe0 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 75 70 29 29 3b 0d 0a 20 20 20 tor(property,.Vector3.up));.....
9000 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 .........genericMenu.AddItem(new
9020 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 44 6f 77 6e 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 .GUIContent("Down",."Set.the.vec
9040 74 6f 72 20 74 6f 20 28 30 2c 20 2d 31 2c 20 30 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 tor.to.(0,.-1,.0,.0)"),.(Vector3
9060 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 64 6f 77 6e 2c 20 28 29 20 3d 3e 20 53 65 74 56 )vec.==.Vector3.down,.().=>.SetV
9080 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 64 6f 77 6e 29 29 3b 0d ector(property,.Vector3.down));.
90a0 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d .............genericMenu.AddItem
90c0 28 6e 65 77 20 47 55 49 43 6f 6e 74 65 6e 74 28 22 46 6f 72 77 61 72 64 22 2c 20 22 53 65 74 20 (new.GUIContent("Forward",."Set.
90e0 74 68 65 20 76 65 63 74 6f 72 20 70 72 6f 70 65 72 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 31 2c the.vector.property.to.(0,.0,.1,
9100 20 30 29 22 29 2c 20 28 56 65 63 74 6f 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 66 .0)"),.(Vector3)vec.==.Vector3.f
9120 6f 72 77 61 72 64 2c 20 28 29 20 3d 3e 20 53 65 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 orward,.().=>.SetVector(property
9140 2c 20 56 65 63 74 6f 72 33 2e 66 6f 72 77 61 72 64 29 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ,.Vector3.forward));............
9160 20 20 67 65 6e 65 72 69 63 4d 65 6e 75 2e 41 64 64 49 74 65 6d 28 6e 65 77 20 47 55 49 43 6f 6e ..genericMenu.AddItem(new.GUICon
9180 74 65 6e 74 28 22 42 61 63 6b 22 2c 20 22 53 65 74 20 74 68 65 20 76 65 63 74 6f 72 20 70 72 6f tent("Back",."Set.the.vector.pro
91a0 70 65 72 74 79 20 74 6f 20 28 30 2c 20 30 2c 20 2d 31 2c 20 30 29 22 29 2c 20 28 56 65 63 74 6f perty.to.(0,.0,.-1,.0)"),.(Vecto
91c0 72 33 29 76 65 63 20 3d 3d 20 56 65 63 74 6f 72 33 2e 62 61 63 6b 2c 20 28 29 20 3d 3e 20 53 65 r3)vec.==.Vector3.back,.().=>.Se
91e0 74 56 65 63 74 6f 72 28 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 33 2e 62 61 63 6b 29 29 tVector(property,.Vector3.back))
9200 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 ;..........}............private.
9220 76 6f 69 64 20 53 65 74 56 65 63 74 6f 72 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 void.SetVector(InspectorProperty
9240 20 70 72 6f 70 65 72 74 79 2c 20 56 65 63 74 6f 72 34 20 76 61 6c 75 65 29 0d 0a 20 20 20 20 20 .property,.Vector4.value).......
9260 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e ...{..............property.Tree.
9280 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 69 6c 52 65 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 DelayActionUntilRepaint(().=>...
92a0 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f ...........{..................fo
92c0 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 r.(int.i.=.0;.i.<.property.Value
92e0 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 Entry.ValueCount;.i++)..........
9300 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 70 ........{......................p
9320 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d roperty.ValueEntry.WeakValues[i]
9340 20 3d 20 6e 65 77 20 64 6f 75 62 6c 65 34 28 76 61 6c 75 65 2e 78 2c 20 76 61 6c 75 65 2e 79 2c .=.new.double4(value.x,.value.y,
9360 20 76 61 6c 75 65 2e 7a 2c 20 76 61 6c 75 65 2e 77 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .value.z,.value.w);.............
9380 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 .....}..............});.........
93a0 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 76 6f 69 64 20 4e 6f 72 6d 61 .}............private.void.Norma
93c0 6c 69 7a 65 45 6e 74 72 69 65 73 28 49 6e 73 70 65 63 74 6f 72 50 72 6f 70 65 72 74 79 20 70 72 lizeEntries(InspectorProperty.pr
93e0 6f 70 65 72 74 79 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 operty)..........{..............
9400 70 72 6f 70 65 72 74 79 2e 54 72 65 65 2e 44 65 6c 61 79 41 63 74 69 6f 6e 55 6e 74 69 6c 52 65 property.Tree.DelayActionUntilRe
9420 70 61 69 6e 74 28 28 29 20 3d 3e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 paint(().=>..............{......
9440 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 ............for.(int.i.=.0;.i.<.
9460 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 2e 56 61 6c 75 65 43 6f 75 6e 74 3b 20 property.ValueEntry.ValueCount;.
9480 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 i++)..................{.........
94a0 20 20 20 20 20 20 20 20 20 20 20 20 20 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 .............property.ValueEntry
94c0 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 20 3d 20 6d 61 74 68 2e 6e 6f 72 6d 61 6c 69 7a 65 73 .WeakValues[i].=.math.normalizes
94e0 61 66 65 28 28 64 6f 75 62 6c 65 34 29 70 72 6f 70 65 72 74 79 2e 56 61 6c 75 65 45 6e 74 72 79 afe((double4)property.ValueEntry
9500 2e 57 65 61 6b 56 61 6c 75 65 73 5b 69 5d 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .WeakValues[i]);................
9520 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d ..}..............});..........}.
9540 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 49 6e 74 32 44 .....}........public.class.Int2D
9560 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 69 6e 74 33 3e 0d 0a 20 rawer.:.OdinValueDrawer<int3>...
9580 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 ...{..........private.bool.isMat
95a0 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f rixChild;............protected.o
95c0 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 verride.void.Initialize().......
95e0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 ...{..............this.isMatrixC
9600 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 hild.=.this.Property.GetAttribut
9620 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c e<MatrixChildAttribute>().!=.nul
9640 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 l;..........}............protect
9660 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 ed.override.void.DrawPropertyLay
9680 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b out(GUIContent.label)..........{
96a0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 ..............Rect.labelRect;...
96c0 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 ...........Rect.contentRect.=.Si
96e0 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 renixEditorGUI.BeginHorizontalPr
9700 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 opertyLayout(label,.out.labelRec
9720 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 t);..............{..............
9740 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 ....var.showLabels.=.!this.isMat
9760 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e rixChild.&&.SirenixEditorFields.
9780 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 ResponsiveVectorComponentFields.
97a0 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 &&.contentRect.width.>=.185;....
97c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 ..............GUIHelper.PushLabe
97e0 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c lWidth(SirenixEditorFields.Singl
9800 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 eLetterStructLabelWidth);.......
9820 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 ...........this.ValueEntry.Prope
9840 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 rty.Children[0].Draw(showLabels.
9860 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e ?.GUIHelper.TempContent("X").:.n
9880 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 ull);..................this.Valu
98a0 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 eEntry.Property.Children[1].Draw
98c0 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 (showLabels.?.GUIHelper.TempCont
98e0 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 ent("Y").:.null);...............
9900 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 0d ...GUIHelper.PopLabelWidth();...
9920 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 .............}..............Sire
9940 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 nixEditorGUI.EndHorizontalProper
9960 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d tyLayout();..........}......}...
9980 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 49 6e 74 33 44 72 61 77 65 72 20 3a 20 4f .....public.class.Int3Drawer.:.O
99a0 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 69 6e 74 33 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 dinValueDrawer<int3>......{.....
99c0 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b .....private.bool.isMatrixChild;
99e0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 ............protected.override.v
9a00 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 oid.Initialize()..........{.....
9a20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 .........this.isMatrixChild.=.th
9a40 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 is.Property.GetAttribute<MatrixC
9a60 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 hildAttribute>().!=.null;.......
9a80 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 ...}............protected.overri
9aa0 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f de.void.DrawPropertyLayout(GUICo
9ac0 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 ntent.label)..........{.........
9ae0 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 .....Rect.labelRect;............
9b00 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 ..Rect.contentRect.=.SirenixEdit
9b20 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 orGUI.BeginHorizontalPropertyLay
9b40 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 out(label,.out.labelRect);......
9b60 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 ........{..................var.s
9b80 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 howLabels.=.!this.isMatrixChild.
9ba0 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 &&.SirenixEditorFields.Responsiv
9bc0 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e eVectorComponentFields.&&.conten
9be0 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 tRect.width.>=.185;.............
9c00 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 .....GUIHelper.PushLabelWidth(Si
9c20 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 renixEditorFields.SingleLetterSt
9c40 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ructLabelWidth);................
9c60 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 ..this.ValueEntry.Property.Child
9c80 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 ren[0].Draw(showLabels.?.GUIHelp
9ca0 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 er.TempContent("X").:.null);....
9cc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 ..............this.ValueEntry.Pr
9ce0 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 operty.Children[1].Draw(showLabe
9d00 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 ls.?.GUIHelper.TempContent("Y").
9d20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 :.null);..................this.V
9d40 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 32 5d 2e 44 alueEntry.Property.Children[2].D
9d60 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 raw(showLabels.?.GUIHelper.TempC
9d80 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ontent("Z").:.null);............
9da0 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b ......GUIHelper.PopLabelWidth();
9dc0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 ................}..............S
9de0 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f irenixEditorGUI.EndHorizontalPro
9e00 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d pertyLayout();..........}......}
9e20 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 49 6e 74 34 44 72 61 77 65 72 20 ........public.class.Int4Drawer.
9e40 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 69 6e 74 34 3e 0d 0a 20 20 20 20 7b 0d 0a :.OdinValueDrawer<int4>......{..
9e60 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 ........private.bool.isMatrixChi
9e80 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 ld;............protected.overrid
9ea0 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a e.void.Initialize()..........{..
9ec0 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d ............this.isMatrixChild.=
9ee0 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 .this.Property.GetAttribute<Matr
9f00 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 ixChildAttribute>().!=.null;....
9f20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 ......}............protected.ove
9f40 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 rride.void.DrawPropertyLayout(GU
9f60 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 IContent.label)..........{......
9f80 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 ........Rect.labelRect;.........
9fa0 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 .....Rect.contentRect.=.SirenixE
9fc0 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 ditorGUI.BeginHorizontalProperty
9fe0 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 Layout(label,.out.labelRect);...
a000 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 ...........{..................va
a020 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 r.showLabels.=.!this.isMatrixChi
a040 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e ld.&&.SirenixEditorFields.Respon
a060 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e siveVectorComponentFields.&&.con
a080 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 tentRect.width.>=.185;..........
a0a0 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 ........GUIHelper.PushLabelWidth
a0c0 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 (SirenixEditorFields.SingleLette
a0e0 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 rStructLabelWidth);.............
a100 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 .....this.ValueEntry.Property.Ch
a120 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 ildren[0].Draw(showLabels.?.GUIH
a140 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d elper.TempContent("X").:.null);.
a160 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 .................this.ValueEntry
a180 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c .Property.Children[1].Draw(showL
a1a0 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 abels.?.GUIHelper.TempContent("Y
a1c0 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 ").:.null);..................thi
a1e0 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 32 s.ValueEntry.Property.Children[2
a200 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 ].Draw(showLabels.?.GUIHelper.Te
a220 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 mpContent("Z").:.null);.........
a240 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 .........this.ValueEntry.Propert
a260 79 2e 43 68 69 6c 64 72 65 6e 5b 33 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 y.Children[3].Draw(showLabels.?.
a280 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 57 22 29 20 3a 20 6e 75 6c GUIHelper.TempContent("W").:.nul
a2a0 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 l);..................GUIHelper.P
a2c0 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d opLabelWidth();................}
a2e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 ..............SirenixEditorGUI.E
a300 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 ndHorizontalPropertyLayout();...
a320 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c .......}......}........public.cl
a340 61 73 73 20 55 49 6e 74 32 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 ass.UInt2Drawer.:.OdinValueDrawe
a360 72 3c 75 69 6e 74 33 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 r<uint3>......{..........private
a380 20 62 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 .bool.isMatrixChild;............
a3a0 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 protected.override.void.Initiali
a3c0 7a 65 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 ze()..........{..............thi
a3e0 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e s.isMatrixChild.=.this.Property.
a400 47 65 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 GetAttribute<MatrixChildAttribut
a420 65 3e 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 e>().!=.null;..........}........
a440 20 20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 ....protected.override.void.Draw
a460 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 PropertyLayout(GUIContent.label)
a480 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 ..........{..............Rect.la
a4a0 62 65 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 belRect;..............Rect.conte
a4c0 6e 74 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 ntRect.=.SirenixEditorGUI.BeginH
a4e0 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f orizontalPropertyLayout(label,.o
a500 75 74 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 ut.labelRect);..............{...
a520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 ...............var.showLabels.=.
a540 21 74 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 !this.isMatrixChild.&&.SirenixEd
a560 69 74 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f itorFields.ResponsiveVectorCompo
a580 6e 65 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 nentFields.&&.contentRect.width.
a5a0 3e 3d 20 31 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 >=.185;..................GUIHelp
a5c0 65 72 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 er.PushLabelWidth(SirenixEditorF
a5e0 69 65 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 ields.SingleLetterStructLabelWid
a600 74 68 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 th);..................this.Value
a620 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 Entry.Property.Children[0].Draw(
a640 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 showLabels.?.GUIHelper.TempConte
a660 6e 74 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 nt("X").:.null);................
a680 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 ..this.ValueEntry.Property.Child
a6a0 72 65 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 ren[1].Draw(showLabels.?.GUIHelp
a6c0 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 er.TempContent("Y").:.null);....
a6e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c ..............GUIHelper.PopLabel
a700 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 Width();................}.......
a720 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a .......SirenixEditorGUI.EndHoriz
a740 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 ontalPropertyLayout();..........
a760 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 55 49 6e }......}........public.class.UIn
a780 74 33 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c 75 69 6e 74 33 t3Drawer.:.OdinValueDrawer<uint3
a7a0 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 6f 6f 6c 20 69 >......{..........private.bool.i
a7c0 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f 74 65 63 74 sMatrixChild;............protect
a7e0 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 28 29 0d 0a 20 ed.override.void.Initialize()...
a800 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 69 73 4d 61 74 .......{..............this.isMat
a820 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 74 41 74 74 72 rixChild.=.this.Property.GetAttr
a840 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e 28 29 20 21 3d ibute<MatrixChildAttribute>().!=
a860 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 6f .null;..........}............pro
a880 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 6f 70 65 72 74 tected.override.void.DrawPropert
a8a0 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a 20 20 20 20 20 yLayout(GUIContent.label).......
a8c0 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 6c 52 65 63 74 ...{..............Rect.labelRect
a8e0 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 52 65 63 74 20 ;..............Rect.contentRect.
a900 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 69 7a 6f 6e 74 =.SirenixEditorGUI.BeginHorizont
a920 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 20 6c 61 62 65 alPropertyLayout(label,.out.labe
a940 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 lRect);..............{..........
a960 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 68 69 73 2e 69 ........var.showLabels.=.!this.i
a980 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 sMatrixChild.&&.SirenixEditorFie
a9a0 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 6e 74 46 69 65 lds.ResponsiveVectorComponentFie
a9c0 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d 20 31 38 35 3b lds.&&.contentRect.width.>=.185;
a9e0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 75 73 68 ..................GUIHelper.Push
aa00 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 6c 64 73 2e 53 LabelWidth(SirenixEditorFields.S
aa20 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 29 3b 0d 0a 20 ingleLetterStructLabelWidth);...
aa40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 ...............this.ValueEntry.P
aa60 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 roperty.Children[0].Draw(showLab
aa80 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 58 22 29 els.?.GUIHelper.TempContent("X")
aaa0 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e .:.null);..................this.
aac0 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 31 5d 2e ValueEntry.Property.Children[1].
aae0 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 Draw(showLabels.?.GUIHelper.Temp
ab00 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 Content("Y").:.null);...........
ab20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e .......this.ValueEntry.Property.
ab40 43 68 69 6c 64 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 Children[2].Draw(showLabels.?.GU
ab60 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 6e 75 6c 6c 29 IHelper.TempContent("Z").:.null)
ab80 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 ;..................GUIHelper.Pop
aba0 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a LabelWidth();................}..
abc0 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 ............SirenixEditorGUI.End
abe0 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 HorizontalPropertyLayout();.....
ac00 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 .....}......}........public.clas
ac20 73 20 55 49 6e 74 34 44 72 61 77 65 72 20 3a 20 4f 64 69 6e 56 61 6c 75 65 44 72 61 77 65 72 3c s.UInt4Drawer.:.OdinValueDrawer<
ac40 75 69 6e 74 34 3e 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 62 uint4>......{..........private.b
ac60 6f 6f 6c 20 69 73 4d 61 74 72 69 78 43 68 69 6c 64 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 ool.isMatrixChild;............pr
ac80 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 49 6e 69 74 69 61 6c 69 7a 65 otected.override.void.Initialize
aca0 28 29 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e ()..........{..............this.
acc0 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 3d 20 74 68 69 73 2e 50 72 6f 70 65 72 74 79 2e 47 65 isMatrixChild.=.this.Property.Ge
ace0 74 41 74 74 72 69 62 75 74 65 3c 4d 61 74 72 69 78 43 68 69 6c 64 41 74 74 72 69 62 75 74 65 3e tAttribute<MatrixChildAttribute>
ad00 28 29 20 21 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 ().!=.null;..........}..........
ad20 20 20 70 72 6f 74 65 63 74 65 64 20 6f 76 65 72 72 69 64 65 20 76 6f 69 64 20 44 72 61 77 50 72 ..protected.override.void.DrawPr
ad40 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 47 55 49 43 6f 6e 74 65 6e 74 20 6c 61 62 65 6c 29 0d 0a opertyLayout(GUIContent.label)..
ad60 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 6c 61 62 65 ........{..............Rect.labe
ad80 6c 52 65 63 74 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 52 65 63 74 20 63 6f 6e 74 65 6e 74 lRect;..............Rect.content
ada0 52 65 63 74 20 3d 20 53 69 72 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 42 65 67 69 6e 48 6f 72 Rect.=.SirenixEditorGUI.BeginHor
adc0 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 72 74 79 4c 61 79 6f 75 74 28 6c 61 62 65 6c 2c 20 6f 75 74 izontalPropertyLayout(label,.out
ade0 20 6c 61 62 65 6c 52 65 63 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 .labelRect);..............{.....
ae00 20 20 20 20 20 20 20 20 20 20 20 20 20 76 61 72 20 73 68 6f 77 4c 61 62 65 6c 73 20 3d 20 21 74 .............var.showLabels.=.!t
ae20 68 69 73 2e 69 73 4d 61 74 72 69 78 43 68 69 6c 64 20 26 26 20 53 69 72 65 6e 69 78 45 64 69 74 his.isMatrixChild.&&.SirenixEdit
ae40 6f 72 46 69 65 6c 64 73 2e 52 65 73 70 6f 6e 73 69 76 65 56 65 63 74 6f 72 43 6f 6d 70 6f 6e 65 orFields.ResponsiveVectorCompone
ae60 6e 74 46 69 65 6c 64 73 20 26 26 20 63 6f 6e 74 65 6e 74 52 65 63 74 2e 77 69 64 74 68 20 3e 3d ntFields.&&.contentRect.width.>=
ae80 20 31 38 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 47 55 49 48 65 6c 70 65 72 .185;..................GUIHelper
aea0 2e 50 75 73 68 4c 61 62 65 6c 57 69 64 74 68 28 53 69 72 65 6e 69 78 45 64 69 74 6f 72 46 69 65 .PushLabelWidth(SirenixEditorFie
aec0 6c 64 73 2e 53 69 6e 67 6c 65 4c 65 74 74 65 72 53 74 72 75 63 74 4c 61 62 65 6c 57 69 64 74 68 lds.SingleLetterStructLabelWidth
aee0 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e );..................this.ValueEn
af00 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 30 5d 2e 44 72 61 77 28 73 68 try.Property.Children[0].Draw(sh
af20 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 owLabels.?.GUIHelper.TempContent
af40 28 22 58 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ("X").:.null);..................
af60 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 this.ValueEntry.Property.Childre
af80 6e 5b 31 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 n[1].Draw(showLabels.?.GUIHelper
afa0 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 59 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 .TempContent("Y").:.null);......
afc0 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c 75 65 45 6e 74 72 79 2e 50 72 6f 70 ............this.ValueEntry.Prop
afe0 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 32 5d 2e 44 72 61 77 28 73 68 6f 77 4c 61 62 65 6c 73 erty.Children[2].Draw(showLabels
b000 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e 74 65 6e 74 28 22 5a 22 29 20 3a 20 .?.GUIHelper.TempContent("Z").:.
b020 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 74 68 69 73 2e 56 61 6c null);..................this.Val
b040 75 65 45 6e 74 72 79 2e 50 72 6f 70 65 72 74 79 2e 43 68 69 6c 64 72 65 6e 5b 33 5d 2e 44 72 61 ueEntry.Property.Children[3].Dra
b060 77 28 73 68 6f 77 4c 61 62 65 6c 73 20 3f 20 47 55 49 48 65 6c 70 65 72 2e 54 65 6d 70 43 6f 6e w(showLabels.?.GUIHelper.TempCon
b080 74 65 6e 74 28 22 57 22 29 20 3a 20 6e 75 6c 6c 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 tent("W").:.null);..............
b0a0 20 20 20 20 47 55 49 48 65 6c 70 65 72 2e 50 6f 70 4c 61 62 65 6c 57 69 64 74 68 28 29 3b 0d 0a ....GUIHelper.PopLabelWidth();..
b0c0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 53 69 72 ..............}..............Sir
b0e0 65 6e 69 78 45 64 69 74 6f 72 47 55 49 2e 45 6e 64 48 6f 72 69 7a 6f 6e 74 61 6c 50 72 6f 70 65 enixEditorGUI.EndHorizontalPrope
b100 72 74 79 4c 61 79 6f 75 74 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 7d 0d 0a rtyLayout();..........}......}..
b120 23 65 6e 64 69 66 0d 0a 7d 05 05 02 30 03 00 00 00 05 00 00 00 27 01 04 00 00 00 50 00 61 00 74 #endif..}...0........'.....P.a.t
b140 00 68 00 01 1a 00 00 00 4d 00 61 00 74 00 68 00 65 00 6d 00 61 00 74 00 69 00 63 00 73 00 44 00 .h......M.a.t.h.e.m.a.t.i.c.s.D.
b160 72 00 61 00 77 00 65 00 72 00 73 00 2e 00 63 00 73 00 2e 00 6d 00 65 00 74 00 61 00 01 01 04 00 r.a.w.e.r.s...c.s...m.e.t.a.....
b180 00 00 44 00 61 00 74 00 61 00 30 04 00 00 00 06 00 00 00 08 fe 00 00 00 01 00 00 00 66 69 6c 65 ..D.a.t.a.0.................file
b1a0 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 3a 20 32 0d 0a 67 75 69 64 3a 20 37 34 37 31 38 62 32 37 FormatVersion:.2..guid:.74718b27
b1c0 33 61 33 32 64 38 37 34 61 39 64 63 33 63 35 38 32 36 39 63 33 36 62 33 0d 0a 4d 6f 6e 6f 49 6d 3a32d874a9dc3c58269c36b3..MonoIm
b1e0 70 6f 72 74 65 72 3a 0d 0a 20 20 65 78 74 65 72 6e 61 6c 4f 62 6a 65 63 74 73 3a 20 7b 7d 0d 0a porter:....externalObjects:.{}..
b200 20 20 73 65 72 69 61 6c 69 7a 65 64 56 65 72 73 69 6f 6e 3a 20 32 0d 0a 20 20 64 65 66 61 75 6c ..serializedVersion:.2....defaul
b220 74 52 65 66 65 72 65 6e 63 65 73 3a 20 5b 5d 0d 0a 20 20 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 tReferences:.[]....executionOrde
b240 72 3a 20 30 0d 0a 20 20 69 63 6f 6e 3a 20 7b 69 6e 73 74 61 6e 63 65 49 44 3a 20 30 7d 0d 0a 20 r:.0....icon:.{instanceID:.0}...
b260 20 75 73 65 72 44 61 74 61 3a 20 0d 0a 20 20 61 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 3a 20 .userData:.....assetBundleName:.
b280 0d 0a 20 20 61 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 3a 20 0d 0a 05 05 02 30 03 00 ....assetBundleVariant:......0..
b2a0 00 00 07 00 00 00 27 01 04 00 00 00 50 00 61 00 74 00 68 00 01 35 00 00 00 53 00 69 00 72 00 65 ......'.....P.a.t.h..5...S.i.r.e
b2c0 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 00 6e 00 49 00 6e 00 73 00 70 00 65 00 63 00 74 00 6f .n.i.x...O.d.i.n.I.n.s.p.e.c.t.o
b2e0 00 72 00 2e 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 73 00 2e 00 55 00 6e 00 69 00 74 00 79 00 4d .r...M.o.d.u.l.e.s...U.n.i.t.y.M
b300 00 61 00 74 00 68 00 65 00 6d 00 61 00 74 00 69 00 63 00 73 00 2e 00 61 00 73 00 6d 00 64 00 65 .a.t.h.e.m.a.t.i.c.s...a.s.m.d.e
b320 00 66 00 01 01 04 00 00 00 44 00 61 00 74 00 61 00 30 04 00 00 00 08 00 00 00 08 66 02 00 00 01 .f.......D.a.t.a.0.........f....
b340 00 00 00 7b 0d 0a 20 20 20 20 22 6e 61 6d 65 22 3a 20 22 53 69 72 65 6e 69 78 2e 4f 64 69 6e 49 ...{......"name":."Sirenix.OdinI
b360 6e 73 70 65 63 74 6f 72 2e 4d 6f 64 75 6c 65 73 2e 55 6e 69 74 79 4d 61 74 68 65 6d 61 74 69 63 nspector.Modules.UnityMathematic
b380 73 22 2c 0d 0a 20 20 20 20 22 72 65 66 65 72 65 6e 63 65 73 22 3a 20 5b 20 22 55 6e 69 74 79 2e s",......"references":.[."Unity.
b3a0 4d 61 74 68 65 6d 61 74 69 63 73 22 2c 20 22 53 69 72 65 6e 69 78 2e 4f 64 69 6e 49 6e 73 70 65 Mathematics",."Sirenix.OdinInspe
b3c0 63 74 6f 72 2e 41 74 74 72 69 62 75 74 65 73 22 2c 20 22 53 69 72 65 6e 69 78 2e 4f 64 69 6e 49 ctor.Attributes",."Sirenix.OdinI
b3e0 6e 73 70 65 63 74 6f 72 2e 45 64 69 74 6f 72 22 2c 20 22 53 69 72 65 6e 69 78 2e 55 74 69 6c 69 nspector.Editor",."Sirenix.Utili
b400 74 69 65 73 22 2c 20 22 53 69 72 65 6e 69 78 2e 55 74 69 6c 69 74 69 65 73 2e 45 64 69 74 6f 72 ties",."Sirenix.Utilities.Editor
b420 22 20 5d 2c 0d 0a 20 20 20 20 22 69 6e 63 6c 75 64 65 50 6c 61 74 66 6f 72 6d 73 22 3a 20 5b 20 ".],......"includePlatforms":.[.
b440 22 45 64 69 74 6f 72 22 20 5d 2c 0d 0a 20 20 20 20 22 65 78 63 6c 75 64 65 50 6c 61 74 66 6f 72 "Editor".],......"excludePlatfor
b460 6d 73 22 3a 20 5b 5d 2c 0d 0a 20 20 20 20 22 61 6c 6c 6f 77 55 6e 73 61 66 65 43 6f 64 65 22 3a ms":.[],......"allowUnsafeCode":
b480 20 74 72 75 65 2c 0d 0a 20 20 20 20 22 61 75 74 6f 52 65 66 65 72 65 6e 63 65 64 22 3a 20 74 72 .true,......"autoReferenced":.tr
b4a0 75 65 2c 0d 0a 20 20 20 20 22 6f 76 65 72 72 69 64 65 52 65 66 65 72 65 6e 63 65 73 22 3a 20 66 ue,......"overrideReferences":.f
b4c0 61 6c 73 65 2c 0d 0a 20 20 20 20 22 70 72 65 63 6f 6d 70 69 6c 65 64 52 65 66 65 72 65 6e 63 65 alse,......"precompiledReference
b4e0 73 22 3a 20 5b 20 22 53 69 72 65 6e 69 78 2e 55 74 69 6c 69 74 69 65 73 2e 64 6c 6c 22 2c 20 22 s":.[."Sirenix.Utilities.dll",."
b500 53 69 72 65 6e 69 78 2e 55 74 69 6c 69 74 69 65 73 2e 45 64 69 74 6f 72 2e 64 6c 6c 22 2c 20 22 Sirenix.Utilities.Editor.dll",."
b520 53 69 72 65 6e 69 78 2e 4f 64 69 6e 49 6e 73 70 65 63 74 6f 72 2e 41 74 74 72 69 62 75 74 65 73 Sirenix.OdinInspector.Attributes
b540 2e 64 6c 6c 22 2c 20 22 53 69 72 65 6e 69 78 2e 4f 64 69 6e 49 6e 73 70 65 63 74 6f 72 2e 45 64 .dll",."Sirenix.OdinInspector.Ed
b560 69 74 6f 72 2e 64 6c 6c 22 2c 20 22 53 69 72 65 6e 69 78 2e 53 65 72 69 61 6c 69 7a 61 74 69 6f itor.dll",."Sirenix.Serializatio
b580 6e 2e 64 6c 6c 22 20 5d 2c 0d 0a 20 20 20 20 22 64 65 66 69 6e 65 43 6f 6e 73 74 72 61 69 6e 74 n.dll".],......"defineConstraint
b5a0 73 22 3a 20 5b 5d 0d 0a 7d 05 05 02 30 03 00 00 00 09 00 00 00 27 01 04 00 00 00 50 00 61 00 74 s":.[]..}...0........'.....P.a.t
b5c0 00 68 00 01 3a 00 00 00 53 00 69 00 72 00 65 00 6e 00 69 00 78 00 2e 00 4f 00 64 00 69 00 6e 00 .h..:...S.i.r.e.n.i.x...O.d.i.n.
b5e0 49 00 6e 00 73 00 70 00 65 00 63 00 74 00 6f 00 72 00 2e 00 4d 00 6f 00 64 00 75 00 6c 00 65 00 I.n.s.p.e.c.t.o.r...M.o.d.u.l.e.
b600 73 00 2e 00 55 00 6e 00 69 00 74 00 79 00 4d 00 61 00 74 00 68 00 65 00 6d 00 61 00 74 00 69 00 s...U.n.i.t.y.M.a.t.h.e.m.a.t.i.
b620 63 00 73 00 2e 00 61 00 73 00 6d 00 64 00 65 00 66 00 2e 00 6d 00 65 00 74 00 61 00 01 01 04 00 c.s...a.s.m.d.e.f...m.e.t.a.....
b640 00 00 44 00 61 00 74 00 61 00 30 04 00 00 00 0a 00 00 00 08 ad 00 00 00 01 00 00 00 66 69 6c 65 ..D.a.t.a.0.................file
b660 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 3a 20 32 0d 0a 67 75 69 64 3a 20 61 64 39 36 38 64 36 30 FormatVersion:.2..guid:.ad968d60
b680 35 36 32 38 64 30 36 34 39 39 62 36 32 63 64 63 33 30 66 31 31 63 66 38 0d 0a 41 73 73 65 6d 62 5628d06499b62cdc30f11cf8..Assemb
b6a0 6c 79 44 65 66 69 6e 69 74 69 6f 6e 49 6d 70 6f 72 74 65 72 3a 0d 0a 20 20 65 78 74 65 72 6e 61 lyDefinitionImporter:....externa
b6c0 6c 4f 62 6a 65 63 74 73 3a 20 7b 7d 0d 0a 20 20 75 73 65 72 44 61 74 61 3a 20 0d 0a 20 20 61 73 lObjects:.{}....userData:.....as
b6e0 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 3a 20 0d 0a 20 20 61 73 73 65 74 42 75 6e 64 6c 65 56 61 setBundleName:.....assetBundleVa
b700 72 69 61 6e 74 3a 20 0d 0a 05 05 07 05 05 riant:........