• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 904 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)

401. Laya 集成Box2d 可以么?着急 [ 72%]

...  //设置大小     canvas.width = Laya.stage.width;     canvas.height = Laya.stage.height;     var ctx = canvas.getContext('2d');     Laya.stage.graphics.clear(false);     var textture = new Laya.Texture(canvas);     textture.bitmap.alwaysChange = true;//小游戏使用...

来源: Laya_社区 发布时间: 20180905

402. laya.utils.Utils [ 72%]

...Area(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入的显示对...

来源: laya_api 发布时间: 20170929

403. laya.physics.PhysicsDebugDraw_API3.0 [ 72%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX g...

来源: Laya3.0_api 发布时间: 20231115

404. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 72%]

...createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 100, height : 100 }); var url:String ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var ur...

来源: Laya2.0_文档 发布时间: 20210715

405. Laya.stage.drawToCanvas 原生ios 使用该api报错,求解决方案 [ 71%]

...lC: Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); //获取截屏区域的texture let base64 = htmlC.toBase64("image/jpeg", 1);   使用toBase64 报错can`t find variable conchToBase64FlipY 附件 : --> 2019-06-21 添加评论 免费帖 --> 分享 微博 QZONE...

来源: Laya_社区 发布时间: 20190621

406. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 71%]

...        Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [dialog]));         } 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787用户 赞同来自: class DialogPage extends ui.Dialog...

来源: Laya_社区 发布时间: 20180620

407. laya.ui.Image_API3.0 [ 71%]

... 对象的网格信息。 bg.width = 150;//设置 bg 对象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 Image 类的实例对象 image ,并传入它...

来源: Laya3.0_api 发布时间: 20231115

408. 性能测试-卡通人物2 [ 71%]

...ter.WIDTH) this.x = -Character.WIDTH; } } Character.WIDTH = 110; Character.HEIGHT = 110; new PerformanceTest_Cartoon2();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprite = Laya.Sprite...

来源: Laya2.0_示例 发布时间: 20241001

409. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 71%]

...化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH =...

来源: Laya2.0_文档 发布时间: 20210715

410. 关于2d内的坐标转换问题 [ 71%]

... 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可,中央的坐标你只知道相对于绿色框的坐标,则需要转换一下,很简单: globalPoint = greenBox.localToGlobal(new Laya.Point(x,y));...

来源: Laya_社区 发布时间: 20180502