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

大约有 468 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)

451. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 49%]

....Sprite; import laya.events.Event; import laya.ui.Image; import laya.utils.Browser; public class TestDemo { private var sp:Sprite; public function TestDemo() { Laya.init(500,500); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,100,50,"#FF0000"); sp.size(100,50); // 设置轴...

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

452. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 48%]

... private function onLink(data:*):void { // TODO Auto Generated method stub Browser.window.location.href=data; }5、实现html页面跳转 示例如下: var iHtml:HTMLIframeElement=new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href="res/html/test.html";6、简单的图片显示 示例...

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

453. 3D中摄像机绕物体旋转该如何实现? [ 48%]

...ya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. this.CurrentAngles = this.LerpV...

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

454. 官方案例里摄像机绕物体旋转脚本的问题 [ 48%]

...ya.Event.MOUSE_WHEEL, this, this.mouseWheel) } onUpdate(): void { if (Laya.Browser.onMobile) { this.AroundByMobileInput(); } else { this.AroundByMouseInput(); } if (!this.canRotation_X) this.targetAngles.y = 0; if (!this.canRotation_Y) this.targetAngles.x = 0; //Lerp. this.CurrentAngles = this.LerpV...

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

455. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 47%]

...渲染,代码如下: //创建一个url对象; var url:string = Laya.Browser.window.URL.createObjectURL(imgBlob); //加载URL获得HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A...

来源: Laya3.0_文档 发布时间: 20230303

456. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 47%]

....drawTexture(texture2, 0, 0); //把草垛居底部显示 // this.grass.y = Browser.clientHeight - this.grass.height; this.addChild(this.grass); //创建一个帧循环处理函数,用于背景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, this.onLoop) } _proto.onLoop =...

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

457. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 47%]

...尽的讯息。   Laya Engine : 1.17.19.1beta 作业系统: macOS 10.12.6 Browser : chrome 67.0.3396.99   没有什么复杂的程式码,只是让物件一直旋转。有将mask拿掉测试,发现就不会有类似问题。class GameLayer extends ui.GameLayerUI { private infos : any; construct...

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

458. JS进度条加载问题 [ 47%]

...2; Laya.loader.load(proArr,Laya.Handler.create(this,onProLoaded)); if(Laya.Browser.onAndriod) { Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; } else { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Load...

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

459. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...ackage { import laya.display.Stage; import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居...

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

460. Laya.loader.create中的progress回调好像不准确? [ 46%]

...n的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 如何定义动画播放过某帧后的回调函数 Laya.Handler.create 回调 Laya.loader.create 不会反馈失败状态跟描述不符合 调用 Laya.MiniAdpte...

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