From 6673734b9ce00ae824b1252aaf728970c0e3763a Mon Sep 17 00:00:00 2001 From: hecomi Date: Sat, 26 Nov 2016 16:31:34 +0900 Subject: [PATCH] remove Cursor-related codes because they were handled directly in the native code. --- .../Examples/Prefabs/Monitor Board.prefab | Bin 7964 -> 7056 bytes .../Examples/Prefabs/Monitor Plane.prefab | Bin 7964 -> 7056 bytes .../Prefabs/Monitor Unity Plane.prefab | Bin 7980 -> 7088 bytes .../Examples/Scenes/Meta Data.unity | Bin 19456 -> 18600 bytes .../Examples/Scenes/Shaders.unity | Bin 20864 -> 19840 bytes .../Examples/Scenes/Toggle Monitors.unity | Bin 20344 -> 19656 bytes .../Examples/Scenes/Zoom.unity | Bin 22880 -> 21968 bytes .../Examples/Scripts/GazePointAnalyzer.cs | 12 +++++ .../Examples/Scripts/Loupe.cs | 9 ++-- Assets/uDesktopDuplication/Scripts/Cursor.cs | 47 ------------------ .../Scripts/Cursor.cs.meta | 12 ----- Assets/uDesktopDuplication/Scripts/Texture.cs | 15 +----- .../Shaders/uDD_Unlit.shader | 1 - .../Shaders/uDD_Unlit_BlackMask.shader | 1 - .../Shaders/uDD_Unlit_Displacement.shader | 1 - .../Shaders/uDD_Unlit_Transparent.shader | 1 - 16 files changed, 16 insertions(+), 83 deletions(-) delete mode 100644 Assets/uDesktopDuplication/Scripts/Cursor.cs delete mode 100644 Assets/uDesktopDuplication/Scripts/Cursor.cs.meta diff --git a/Assets/uDesktopDuplication/Examples/Prefabs/Monitor Board.prefab b/Assets/uDesktopDuplication/Examples/Prefabs/Monitor Board.prefab index 6fee75727bbf5e034ae728719d0179528d39f353..40eae0488805189c5b53294aea83108d0d210db2 100644 GIT binary patch delta 194 zcmbPZH^E$mfkBd)fkAo#0|Ns;kgWiu8BFy|^o-Js82RnCxTIY*Q!m%UDmgkQJGnAR{ulLPm#? aW%5!P=gB{0o-i^^zAM|z$UHewE*}6P1u(n- delta 404 zcmbPWKF7|Ffk8%>fk9q|fq{V^$PNI~45oS}dPZqR4FCTB|If${6aX97%Dfayc1_)XP7K3q06{( zvZI7JoD6=h8L43N=W-EFflMB07Zd*_+JE) z27)u6P3C4WO=WBV%J~5KAP*J+9SL+L1Be2F2bJr=G)M@>W|@3ZLP|h)uHTxFmwQ~+ zb_A||pBWl6`Kg5UWPM4t$sZ&+CQ0#3HjosV>>;Vc$U3=H(wPU@&dFOOUobLHo-5VN b$TC?`I)Ac(v;ia2fk9q|fq{V^$PNI~45oS}dPZqR4FCTB|If${6aX97%Dfayc1_)XP7K3q06{( zvZI7JCB5_=j5%D&l#B~&y{Ls bWSOieoj=(?+JKR1a-y^-n}Q<)gMuRf*dk_d diff --git a/Assets/uDesktopDuplication/Examples/Prefabs/Monitor Unity Plane.prefab b/Assets/uDesktopDuplication/Examples/Prefabs/Monitor Unity Plane.prefab index 5721fbf8045387ab416253b034e31afb72d250a4..7edf16ca886501af8818eb02c34271ab2a45d72e 100644 GIT binary patch delta 194 zcmZ2ux4~S6fk9GWL?(C0=rFQO Y-YVlfnM3voBh%!!vdxUllMChY0n*hm%m4rY delta 392 zcmdmBzQ)dvfkDQHfk9q}fq{V^$W8##45oS}dPZqR4FCTB|If${6aX97%Dfayc1_)XP7K3q06{- zvZI7J>wG!$U1qdq%$vyC6lj8K4)Z}yjQB3k!7-@bpGT3X#+;4$&J#& Kz~E7E1YrOz!ew3n diff --git a/Assets/uDesktopDuplication/Examples/Scenes/Meta Data.unity b/Assets/uDesktopDuplication/Examples/Scenes/Meta Data.unity index 986584fa8377aacbf44f44bb6c21d15f957301e5..dea210ac21011a70d8f52a1880e3da3340620b26 100644 GIT binary patch delta 522 zcmZpe!MI`~qZ$K)gD3-o#|j1p27Vyh07x^K>Y3;nr5Q2&`~UwxqX1Cg??$zm%$rxS ztzZ(3<&;V>Vdic;wcRH*?X;_{5>R^QM!$Hb$;Y_&2r@D-GAv+bXjlalWdvfy$<;hF z*_=y@it~#$^YBhJVicLY)V^MJBUGM|;s1XilVRSu2tE+)!NkCjGuhEW+;RtyqQJU!h>triODN6%328NYDDUi!yE|Z$JI18lw0Z>i{NC$#3 z#3*T~oWSH>pivH!S2{}T6|gffOa!VC0b__dIjA}g4m9U5PyXbn#mF&P)5&0RzSHGN zE^L#Xobwo2CU10BW@Mdw)%m?7&{~E`yCbJH_5wYP1lT6ub@85T;ktnpB*-{3hN+&3o>7_+!@vLk|1$~#1^#SQo5`&C7swTn zzU~yse(_)C1y=tjy&D^4XT8q1s5_WzN!Op|YO?3vsss4@9EXVzwau3jS+QJ~c1yEgTV z2PencipxeYF)(BRg@8W!Uj(uQ2ptC_>Ayh5` zD3<`_{{hPZIY6)oDz{_uNn2@I51{W%fTAFmDFST+saOJ4(J-0OPMYzh zT2_LMfuR7X0u&@HP}P#t7H5HUbxba_lV-ADpWJ6B#h5X9B~bYcb_NC=pi~SPLkyRN zDnBv#p`El)0x-}~3}l(iXRpNzGXFv4dLYTbz&Y8{-atTiuHTxFmwQ~+b_A||pBWl6 zIobZ^WG9C_M%Kw29h4c_CSP@UFA21cVbbo%X^p)QuY&ah3HHf%9laSBOqO)o&&W90 z(N%qNfV04431=A&kPb1~3yqU)oUQm392pou7y{TQn>uSVvP@2NHfCg>Jk?pB9h5*6 yxD_T}bk>~Y$TsF{Z;o~GW&r>h*|J^$ diff --git a/Assets/uDesktopDuplication/Examples/Scenes/Shaders.unity b/Assets/uDesktopDuplication/Examples/Scenes/Shaders.unity index d76cc0dceeebc3fc4082733bc6299fff5441d115..e334ac80903e4585511ac47268de98de11e6bb1e 100644 GIT binary patch delta 1357 zcmah|Ur1A76hHU6*(^<^g|h4FN=aHxWy~_&)|^YWc{gt?>dD$LBf(OWKqYcwk3CEe zR8-a^Aw#N}2oe-M_Rz4NB1kYQs9>l)_0&4|&&H;bgY%v5oZtC=zx(^{UHB0bzQ_0h zY)=4uVE`zk{Ts?qS8b^_UogYpWHQN67bqv69XYZ5@cy^NkT5f!Ecv)*PK0i@fB*ep z>cxojan~7pInAA(_4l*G3@{MQfp9%_7zzUgc%(f8pQ-PlQb)m2fR3jw3zGn0HM=aEgdm`q)=fg+JLM4yOr zl=p#-P*i8aZPu2cVZGB(oZo$!vKoGx1n#<(Md%Xmz8<${8250PA(fS8nrk7%t)n&E3HX zE62Xg#g|rt@lP(m7(seDl*hcKjz@6K${mv~Z9QRRan&pl#s~{i&NMQnVnrCTacndX zuiFglk376q@CYQZvLLCTpn52~1BC;qY< z+TZWYQj&!Zt0SfKr?AlRaygVIG^vOKrxqhEx`OyS!7hcwq(P&P!$`B9PWgQ2 z=)_a1c~@C6ePZzCfUG7j8uYm&oj%ttnlkyhxv0ycNlPZ&0Tewc$(Uy=Nztpvspg<6 zxa{3bu%IDFPJZkb|*Lg7Xk2`$AUI{Qamcw;SJ zDzl`bo5Dki1PKux2qK6MH{DbibWz06>ZY4o@AvOhx1~S4-{F1U!}C4g_siFqe4Et* zIGX|LWdO*bHJ_n;rFCW5zB2e5jYgS{9DFgncFV+#>t7%k)}9funsHa7tki0Y;H8=KPJ{%w7u+4iM-^o+6Z zdt1fnmqiiZs}oO#i+Uxhux_;0quTT#1!Obrv}E~Ypfv#l72E=l*U(l?wj{}4F8rJa z#iOgxk{xQ>+j5{`Pw+qs9ED?Jk5VF5X2GF~&iZi*Vv0qhJfV5Ow204jDgZytoNotr z&=(NcO@VPWI+SdHpunauXp@+Xr)YeES8bA!lWeDK&Q(qIc%{|WM@pA=d`odt7@@Hj z)9sQ`n+kB3BH}sqOkOeZtOw|_OYAG|wo9t~G(2uM7`wUnF-o#fr~vjLvd9M8-wunEGFnOOu@N`DT=1Tzn>1xp1e6PPU8 zGJ)xI38E>QEf-j$4$rSQc)}Etz?UAOczZB$?4Ht!yQbH4MF1=MYX`S~d$@V1tA1dz zb;qt07<;u|!*Ilzf$ugPWGU#XEM{tKshngQjMU_@R18%$q))&2W*o2bX*E=7vGL6r z%yd@d0+?Je;|%~bm{l#I$*E&1EOQo9nGo$|rykXw0PX(JPUkAf<KPUvx6HD*fEITgi<9p8ScKh)ET-Igyk0%cLiWtXV#t%gqQ|>^ zhC|3Z%fW`@-iFL+CHAW>F|4b}$I|M8ITcwJr^YI@`ePi{&8dQfff{X`5^XaCG`?8^ sW~}!$%wENyZ$1$o`w~Sk`SmOv`>UI&EWeBq|6DSB^e4!GrCaO%0quWm&;S4c diff --git a/Assets/uDesktopDuplication/Examples/Scenes/Toggle Monitors.unity b/Assets/uDesktopDuplication/Examples/Scenes/Toggle Monitors.unity index 00ca42cd715e56f3b8970792dcea948d2e4b6cce..806460005015011e803c62717b903d39afae5205 100644 GIT binary patch delta 748 zcmZWlO=uHQ5T3W2-A1u!#L}NNH9@cuZCZnWP#fE9g1cc;D?)p)#gq~uP%v~Ys25W~ z^w5Ja7X_^?7Cea28a#LquRT~SQc*#qMLl?kwt6WZTxXIs(E4EB%zWSXzW3g&O^UhO zq6Z+>31H0uz*ef$l;KeLU^sFv0)HIG5k3OAC>%~K-MjOpblH0N%&C938YvA;41WDN zIrDTp_8{9I4U(>Jw#SyP2oNwOL;ffsf})86Os)ldB)p4SFNH<{-Tv~~w%+qLT!c&I z`thT{3QX7!zSPR?PHvmWPmtjnv*li0Ie053(=p_)bkKW z%clWWUG4@Rh-sn$Q?#cs8`J!^6o4G5c@Q4=mg9{x{B-c*H0f^Q3)%ztfz(fG{#XC_ z9UWkG0DZb9EqF1kHwi#f*Zl390QM8b{D5oz%ax~bT-Ua*kz(ET5*GC4I+YF8H}{`^ zy7soa(6-!rwRJIpa{M(e#B)N%?!<24DP|JaC81#HM7>Z^G0tGln4mso?!%C|0|%2e z_}HkeoquITIoMOdyJj1y=gqUEY)u}~_~Xkh%vBc61FX$*M_=a{zBC%^Hu9`eijR`E Z5FQL#y2^qJE$B!_XN;hWi0mq&NFmURhzVX4VcYU10$t~wyV`;C^PcmZ=bZC?m|}mQF)u*- z41jMG0QOS+jyyCso@i{k-UK_jT#o4|u}#6e#g&?QvaxyFGy5v1U(Ggb)lWB7MeqHw zq`%j_*T;;6vnIR|0dcSb=c6P(V=g?S%I`cmW+_f{I>A|4g&Xg7r zDljNjmDA~v8e1R>puw1A+}H5b`|`riH|=xLbF=9{cOS;3FBohnXs=a^4r1 z8e=X!)8Gr&WtPUQ>v5Ty7!I12CkKRw47+4AzLqO10L;>^<|hEP$w!z1hvoe^=hmQ2 z))LjGe3Yn6?kg0JyIVy1DOj)B?ckPEdrB3p7f;_rpKLf#T+d^Y+wKTsDje=`sySe! R2K}AK@PS92%yg^?{{fxi$)o@P diff --git a/Assets/uDesktopDuplication/Examples/Scenes/Zoom.unity b/Assets/uDesktopDuplication/Examples/Scenes/Zoom.unity index 6c55ada2809272d3ae5798b96ec9e29e34b5ad8b..58d5ddabcf2a1fe999bb68affa890535bec7453e 100644 GIT binary patch delta 520 zcmYjM%`XFS5S^)Z)mMD9sICSPJs?$IanyuFx3yiX?Lp$}L?oySfYGeyumX&; z_aQtJGk~$Iw?Gem8Ljlm-A7f5>^jZ^IN-$pS6+tBVwtUR(iIukX-1Jv$$VN>oUW&Q zfDN|nqJEBg&&HQ2#lg1%x>KCEK<|oNR$Bxx$5FE=j^~g&(8vdj1iZ8#xS@D(7R~e= ztVau#_ZuitO0A$BHIF(}$3Hc#R{yCw!Ma4RAx9{aYYqMCWuf;%Ej+yz9kq7ms8y4$ zRWh5>nzH&t=nJj8RN@17CtocL;*%0p12N>IR`ee3m--d2Y!6n_RWSveYtILp&Nhp=XmdJY_(hy3*eYZ#LU{ya?U$kn6?mV9EaMXwXC0~pxJstY-}b5Xr}T4{ z@P~`rmZ$;{sd$STag+wPyIZS7TAY4F5x{_6cZYHJTww9o%2Vfqnb5+wvEvcE1fsYb8A{@X9~LPia*Y1sc@j5;#}YjwM+zS zC{G1>7R6lfZl%~%ZOtb~Rks-01RKr>786}?pA31H4x>UF)8L*#Gu{(yH0GJm&h)q{ U3{yTBYGekS44IiOn+oxoKL;4hCIA2c diff --git a/Assets/uDesktopDuplication/Examples/Scripts/GazePointAnalyzer.cs b/Assets/uDesktopDuplication/Examples/Scripts/GazePointAnalyzer.cs index 1f632fe..397a1f7 100644 --- a/Assets/uDesktopDuplication/Examples/Scripts/GazePointAnalyzer.cs +++ b/Assets/uDesktopDuplication/Examples/Scripts/GazePointAnalyzer.cs @@ -15,6 +15,11 @@ public class GazePointAnalyzer : MonoBehaviour { get { return GetWorldPositionFromCoord((int)averageCoord_.x, (int)averageCoord_.y); } } + + public Vector3 cursorPos + { + get { return GetWorldPositionFromCoord(uddTexture_.monitor.cursorX, uddTexture_.monitor.cursorY); } + } private Vector2 preCursorCoord_ = Vector2.zero; [Header("Filters")] @@ -26,6 +31,7 @@ public class GazePointAnalyzer : MonoBehaviour [Header("Debug")] public bool drawAveragePos; + public bool drawCursorPos; public bool drawMoveRects; public bool drawDirtyRects; @@ -142,6 +148,7 @@ public class GazePointAnalyzer : MonoBehaviour void DebugDraw() { if (drawAveragePos) DrawAveragePos(); + if (drawCursorPos) DrawCursorPos(); if (drawDirtyRects) DrawDirtyRects(); if (drawMoveRects) DrawMoveRects(); } @@ -164,6 +171,11 @@ public class GazePointAnalyzer : MonoBehaviour Debug.DrawLine(transform.position, averagePos, Color.yellow); } + void DrawCursorPos() + { + Debug.DrawLine(transform.position, cursorPos, Color.grey); + } + void DrawMoveRects() { foreach (var rect in uddTexture_.monitor.moveRects) { diff --git a/Assets/uDesktopDuplication/Examples/Scripts/Loupe.cs b/Assets/uDesktopDuplication/Examples/Scripts/Loupe.cs index 541b074..933deaa 100644 --- a/Assets/uDesktopDuplication/Examples/Scripts/Loupe.cs +++ b/Assets/uDesktopDuplication/Examples/Scripts/Loupe.cs @@ -1,18 +1,15 @@ using UnityEngine; -[RequireComponent(typeof(uDesktopDuplication.Texture)), - RequireComponent(typeof(uDesktopDuplication.Cursor))] +[RequireComponent(typeof(uDesktopDuplication.Texture))] public class Loupe : MonoBehaviour { private uDesktopDuplication.Texture uddTexture_; - private uDesktopDuplication.Cursor uddCursor_; public float zoom = 3f; public float aspect = 1f; void Start() { uddTexture_ = GetComponent(); - uddCursor_ = GetComponent(); uddTexture_.useClip = true; } @@ -31,10 +28,10 @@ public class Loupe : MonoBehaviour var monitor = uddTexture_.monitor; var x = monitor.isCursorVisible ? - uddCursor_.coord.x : + (float)monitor.cursorX / monitor.width : (float)monitor.systemCursorX / monitor.width; var y = monitor.isCursorVisible ? - uddCursor_.coord.y : + (float)monitor.cursorY / monitor.height : (float)monitor.systemCursorY / monitor.height; var w = 1f / zoom; var h = w / aspect * monitor.aspect; diff --git a/Assets/uDesktopDuplication/Scripts/Cursor.cs b/Assets/uDesktopDuplication/Scripts/Cursor.cs deleted file mode 100644 index 60e636b..0000000 --- a/Assets/uDesktopDuplication/Scripts/Cursor.cs +++ /dev/null @@ -1,47 +0,0 @@ -using UnityEngine; - -namespace uDesktopDuplication -{ - -[AddComponentMenu("uDesktopDuplication/Cursor"), RequireComponent(typeof(Texture))] -public class Cursor : MonoBehaviour -{ - [SerializeField] Vector2 modelScale = Vector2.one; - - public Vector3 worldPosition { get; set; } - public Vector2 coord { get; set; } - - private Texture uddTexture_; - private Monitor monitor { get { return uddTexture_.monitor; } } - - void Start() - { - uddTexture_ = GetComponent(); - } - - void Update() - { - if (monitor.isCursorVisible) { - UpdatePosition(); - } - UpdateCoords(); - } - - void UpdatePosition() - { - var x = (1f * monitor.cursorX / monitor.width - 0.5f) * modelScale.x; - var y = (1f * monitor.cursorY / monitor.height - 0.5f) * modelScale.y; - var iy = uddTexture_.invertY ? -1 : +1; - var localPos = transform.right * x + iy * transform.up * y; - worldPosition = transform.TransformPoint(localPos); - } - - void UpdateCoords() - { - var x = monitor.isCursorVisible ? (float)monitor.cursorX / monitor.width : -9999f; - var y = monitor.isCursorVisible ? (float)monitor.cursorY / monitor.height : -9999f; - coord = new Vector2(x, y); - } -} - -} \ No newline at end of file diff --git a/Assets/uDesktopDuplication/Scripts/Cursor.cs.meta b/Assets/uDesktopDuplication/Scripts/Cursor.cs.meta deleted file mode 100644 index a343690..0000000 --- a/Assets/uDesktopDuplication/Scripts/Cursor.cs.meta +++ /dev/null @@ -1,12 +0,0 @@ -fileFormatVersion: 2 -guid: d2d9e4ca459ecb44da8815bafe9655c5 -timeCreated: 1477635630 -licenseType: Pro -MonoImporter: - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {fileID: 2800000, guid: 89616e59e1cccb346bd4e959257990ca, type: 3} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/uDesktopDuplication/Scripts/Texture.cs b/Assets/uDesktopDuplication/Scripts/Texture.cs index b5ea645..e4057f2 100644 --- a/Assets/uDesktopDuplication/Scripts/Texture.cs +++ b/Assets/uDesktopDuplication/Scripts/Texture.cs @@ -3,7 +3,7 @@ namespace uDesktopDuplication { -[AddComponentMenu("uDesktopDuplication/Texture"), RequireComponent(typeof(Cursor))] +[AddComponentMenu("uDesktopDuplication/Texture")] public class Texture : MonoBehaviour { private Monitor monitor_; @@ -109,11 +109,6 @@ public class Texture : MonoBehaviour private set; } - void Awake() - { - AddCursorIfNotAttached(); - } - void OnEnable() { if (monitor == null) { @@ -143,14 +138,6 @@ public class Texture : MonoBehaviour } } - void AddCursorIfNotAttached() - { - if (!GetComponent()) - { - gameObject.AddComponent(); - } - } - void Reinitialize() { // Monitor instance is released here when initialized. diff --git a/Assets/uDesktopDuplication/Shaders/uDD_Unlit.shader b/Assets/uDesktopDuplication/Shaders/uDD_Unlit.shader index f2f7751..848f72d 100644 --- a/Assets/uDesktopDuplication/Shaders/uDD_Unlit.shader +++ b/Assets/uDesktopDuplication/Shaders/uDD_Unlit.shader @@ -5,7 +5,6 @@ Properties { _Color ("Color", Color) = (1, 1, 1, 1) _MainTex ("Texture", 2D) = "white" {} - _CursorTex ("Cursor Texture", 2D) = "white" {} [KeywordEnum(Y, Z)] _Forward("Mesh Forward Direction", Int) = 0 [Toggle(BEND_ON)] _Bend("Use Bend", Int) = 0 [PowerSlider(10.0)] _Radius("Bend Radius", Range(1, 100)) = 30 diff --git a/Assets/uDesktopDuplication/Shaders/uDD_Unlit_BlackMask.shader b/Assets/uDesktopDuplication/Shaders/uDD_Unlit_BlackMask.shader index 069e16a..608aab3 100644 --- a/Assets/uDesktopDuplication/Shaders/uDD_Unlit_BlackMask.shader +++ b/Assets/uDesktopDuplication/Shaders/uDD_Unlit_BlackMask.shader @@ -6,7 +6,6 @@ Properties _Color ("Color", Color) = (1, 1, 1, 1) _MainTex ("Texture", 2D) = "white" {} _Mask ("Mask", Range(0, 1)) = 0.1 - _CursorTex ("Cursor Texture", 2D) = "white" {} [KeywordEnum(Y, Z)] _Forward("Mesh Forward Direction", Int) = 0 [Toggle(BEND_ON)] _Bend("Use Bend", Int) = 0 [PowerSlider(10.0)] _Radius("Bend Radius", Range(1, 100)) = 30 diff --git a/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Displacement.shader b/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Displacement.shader index d73ab95..3f67fcb 100644 --- a/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Displacement.shader +++ b/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Displacement.shader @@ -5,7 +5,6 @@ Properties { _Color ("Color", Color) = (1, 1, 1, 1) _MainTex ("Texture", 2D) = "white" {} - _CursorTex ("Cursor Texture", 2D) = "white" {} [KeywordEnum(Y, Z)] _Forward("Mesh Forward Direction", Int) = 0 [Toggle(BEND_ON)] _Bend("Use Bend", Int) = 0 [PowerSlider(10.0)] _Radius("Bend Radius", Range(1, 100)) = 30 diff --git a/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Transparent.shader b/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Transparent.shader index 11a8449..3d7ef63 100644 --- a/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Transparent.shader +++ b/Assets/uDesktopDuplication/Shaders/uDD_Unlit_Transparent.shader @@ -5,7 +5,6 @@ Properties { _Color ("Color", Color) = (1, 1, 1, 1) _MainTex ("Texture", 2D) = "white" {} - _CursorTex ("Cursor Texture", 2D) = "white" {} [KeywordEnum(Y, Z)] _Forward("Mesh Forward Direction", Int) = 0 [Toggle(BEND_ON)] _Bend("Use Bend", Int) = 0 [PowerSlider(10.0)] _Radius("Bend Radius", Range(1, 100)) = 30