大约有 3,990 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0071 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...a.Mesh) { //读取桌子模型节点对象,添加到3D场景节点下, var table: Sprite3D = this.scene.addChild(new Laya.Sprite3D(res)); //给桌子节点对象添加刚体碰撞器 var rigidBody = table.addComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D; //实例化一个复合碰撞形状对...
来源: Laya3.0_文档 发布时间: 20251010
...ser.window['conch'].setOnBackPressedFunction){ var n:int=3; Browser.window['conch'].setOnBackPressedFunction(function():void{ if(n-- <=0){ Browser.window['conch'].e...
来源: Laya_社区 发布时间: 20170808
...次开发 callbackToJSWithClass, JS没有收到OC的回调 AS3 代码: var GRIPMgr:IPlatformClass; GRIPMgr = Laya.PlatformClass.createClass("AppUtil"); GRIPMgr.callWithBack(function(n):void{alert(n)},"getDeviceIDInKeychain"); [size=14]IOS代码:[/size] +(void)getDeviceIDInKeychain { [[con...
来源: Laya_社区 发布时间: 20181206
... 人 132*****180 • 2018-05-24 11:55 可能写法有问题,我的写法 var auth_headers = ["Content-Type", "application/json"] auth_headers.push("token") auth_headers.push(WarM.instance.token),我这样是可以的,你把前面的东西加一加看看行不行 w...
来源: Laya_社区 发布时间: 20180523
...ic set luminance(value:Number):void { //你自己的处理代码 //... } } var displayObj:CustomBitmap = new CustomBitmap(); Tween.to(displayObj,{luminance:1.2},300); 2018-05-11 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 哎呀嘛N...
来源: Laya_社区 发布时间: 20180511
...arVelocity() { if (this._btColliderObject) { var phtqua = this._btColliderObject.angularVelocity; - this.angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z); + this._angularVelocity.setValue(phtqua.x, phtqua.y, phtqua.z); ...
来源: Laya_社区 发布时间: 20210908
... ... mDemoUi.myScrollBar.changeHandler = new Handler(this, onChange); for(var m:int=0;m<21;m++){ data.push({m_label:"No."+m}); } mDemoUi.m_list.array=data; Laya.stage.addChild(mDemoUi); ... private function onChange():void{ trace("list index= "+mDemoUi.m_list.scrollBar.value); mDemoUi.valueLab.te...
来源: Laya_社区 发布时间: 20171016
new Laya.Sprite();绘制图形以后,怎么删除释放资源? var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawPie(0,0,50,0,160,"#122D3E"); 绘制完成以后,我怎么从舞台删除绘制的图形和释放Sprite相关资源? clear和removeChild???具体怎么...
来源: Laya_社区 发布时间: 20171119
...的项目是由一个Image跟一个Label构成 那麽我的做法是这样var arr=[]; arr.push({Image:"url",Label:"text"}); list.array=arr; 我现在想在push当中就设置Image的visible属性为false 以简化我的码 请问有可行办法吗 2017-08-22 0 3 分享 微博 QZONE 微信 cuixueying...
来源: Laya_社区 发布时间: 20170822
...间的点击坐标? // 设置用户点击事件 function setUserClick(){ var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect...
来源: Laya_社区 发布时间: 20180201