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

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

651. 计时器-延迟执行 [ 66%]

...layExcute { private var button1:Sprite; private var button2:Sprite; public function Timer_DelayExcute() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage....

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

652. tesT中是一个按钮,在这按钮中加入怎么样的函数,才能调用SAMPLE中的MOVEleft这个函数? [ 66%]

...相关的链接 提交 1 个回复 cuixueying 赞同来自:   把private function moveleft改为public function moveleft,在Sample中实例化moveleft所在的类,就可以通过实例去调用了。   建议你网上找下AS3的属性和函数相互调用的相关教程,学习下! 2016-12...

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

653. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 65%]

...r); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){ var url = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.loadImage(url,0,0,100,100); } ``` 编译运行上面的代码...

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

654. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 65%]

...本类: ```typescript //重写脚本中的onUpdate方法 override public function onUpdate():void { var touchCount:int = _scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (isTwoTouch){ return; } _text.text = "触控点...

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

655. 性能统计面板介绍(ActionScript-2D进阶篇(AS3)-性能优化) [ 65%]

...: ```java package { import laya.utils.Stat; public class Demo { public function Demo() { //初始化舞台 Laya.init(1334,750); //调用性能统计面板方法,(0,0)为面板位置坐标 Stat.show(0,0); } } } ``` ### 2、FPS相关的介绍 ### 2.1 FPS概述 FPS是每秒传输帧数(Frames Per S...

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

656. 2D物理-复合碰撞器 [ 65%]

... box: Sprite; private var totalBox = 200; private var label: Label; public function Physics_Tumbler() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...

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

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

...t laya.utils.Utils; import laya.webgl.WebGL; public class UI_Tree { public function UI_Tree() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; ...

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

658. describeType是否支持? [ 65%]

...ibeType是否支持? 我要在外部知道一个类里是否有名为A的Functionas3里使用的describeType获得一个xml,然后Boolean(xml.method.(@name==method).length())来判断的。可以直接用在laya里头吗? 2015-12-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

659. 2.0版本天空盒子不显示 [ 65%]

...Material.load("res/skybox/DawnDusk/SkyBox.lmat", Laya.Handler.create(null, function(mat:Laya.SkyBoxMaterial):void { camera.skyboxMaterial = mat; })) 2018-11-30 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 一台电脑可以让你哭吗...

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

660. WaterPrimaryMaterial的使用 [ 65%]

...     Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = t...

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