大约有 375 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0062 秒)
...velocity,in float age,in float normalizedAge)\n{\n\n float startVelocity = length(velocity);//起始标量速度\n float endVelocity = startVelocity * u_EndVelocity;//结束标量速度\n\n float velocityIntegral = startVelocity * normalizedAge +(endVelocity - startVelocity) * normalizedAge *normali...
来源: Laya_社区 发布时间: 20171109
..."]; // 随机下标顺序 var g_list_C = ; for (var i = 0; i < g_list_A.length; i++) { g_list_C = i; } function GetRandomNum(Min, Max) { var Range = Max - Min; var Rand = Math.random(); return (Min + Math.round(Rand * Range)); } // 开始游戏 function gameStart() { if (!gameStatue) { gameStatue...
来源: Laya_社区 发布时间: 20160623
...ttps://www.layabox.com/", 180, 180); if (base64OfQrCode.length>0) { let img:Laya.Image = new Laya.Image(); img.skin = "data:image/png;base64,"+base64OfQrCode; img.pos(100, 300); Laya.sta...
来源: Laya_社区 发布时间: 20200729
...ublic function GetHandler(key:String):IHandler { for(var i:int=0;i<list.length;i+=1) { var handler:IHandler=list.GetHandler(key); if(handler!=null){ return handler; } } return null; } public function Send(data:String):void { socket.send(data); } private function onSocketOpen(e:*=null):void { tr...
来源: Laya_社区 发布时间: 20170724
... class AnyName { static testEnable() { return Editor.scene.getSelection().length > 0; } @IEditor.menu("Hierarchy/test", { enableTest: ()=> AnyName.testEnable() } ) static test() { console.log("click menu"); } } 九、创建菜单 可以创建新菜单,并用代码控制弹出。方法为: ...
来源: Laya3.0_文档 发布时间: 20241014
...点的个数信息组成的数组,当touchStart开始的时候e.touches.length>0,否则==0 2017-06-02 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 riven 相关问题 分享:自定义事件派发与侦听(A页面派发 B页面...
来源: Laya_社区 发布时间: 20170601
...pt.offsets; var moveRanges: Vector3[] = moveScript.moveRanges; moverLights.length = 15; for (var i: number = 0; i < 15; i++) { var pointLight: Laya.Sprite3D = (<Laya.Sprite3D>this.scene.addChild(new Laya.Sprite3D())); var pointLightCom: Laya.PointLightCom = pointLight.addComponent(Laya.Poin...
来源: Laya3.0_文档 发布时间: 20241014
...: any, lineWidth: number = 1): DrawLinesCmd | null { if (!points || points.length < 4) return null; return this.addCmd(DrawLinesCmd.create(x, y, points, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画折线 sp.graphics.drawLines(20, 88, [0, 0, 39, -50, 78, 0, 120, -50]...
来源: Laya3.0_文档 发布时间: 20241014
...er.sharedMaterial = customMaterial; } for (var i = 0, n = spirit3D._childs.length; i < n; i++) setCustomMaterial(spirit3D._childs[i]); } function initShader() { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0, 'a_Texcoord0': Laya.Vert...
来源: Laya_示例 发布时间: 20241125
...graphics gray hScrollBarSkin height hideFlags hitArea is3D itemRender left length mask mouseEnabled mouseX mouseY numChildren page parent pivotX pivotY repeatX repeatY right rotation scaleX scaleY scene scrollBar scrollRect scrollType selectedIndex selectedItem selection skewX skewY spaceX spaceY st...
来源: Laya3.0_api 发布时间: 20231115