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

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

471. laya.d3.core.Transform3D_API3.0 [ 80%]

...sform3D Class Transform3D Transform3D 类用于实现3D变换。 Hierarchy EventDispatcher Transform3D NativeTransform3D Index Properties tmpVec3 Accessors localMatrix localPosition localPositionX localPositionY localPositionZ localRotation localRotationEuler localRotationEulerX localRotationEulerY ...

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

472. 按钮点击问题 [ 80%]

... 一点一滴 赞同来自: 按钮的皮肤用一态的,给按钮注册event.mousedown事件,然后在监听event.mouseup事件,在按钮触发event.mouseup事件后通过skin切换皮肤即可。 2018-05-12 0 0 分享 微博 QZONE 微信 hepengwei 赞同来自: 那就是用两个图喽,那...

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

473. 分享:SWF LABEL标签的使用! [ 80%]

...L标签的使用!  package { import laya.ani.swf.MovieClip; import laya.events.Event; public class SwfLabelUse { private var mc:MovieClip; public function SwfLabelUse() { Laya.init(600,600); Laya.stage.bgColor="#EEFFCC"; mc=new MovieClip(); mc.load("output/AAA.swf"); mc.on(Event.LOADED,this,onLoa...

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

474. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 80%]

...代码如下: ```java package { import laya.display.Sprite; import laya.events.Event; import laya.net.HttpRequest; import laya.utils.Browser; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new Htt...

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

475. 为什么说没有​ playByFrame方法 [ 80%]

...name=='anifish'){ anifish.player.playByFrame(0,1.0,0,40,72,30); anifish.on(Event.COMPLETE,this,complete) function complete(){ alert(1) } Monica • 2017-09-27 14:22 @haiboannacom:Event前边加个Laya.看看 haiboannacom • 2017-09-27 14:25 @Monica:第三条鱼我加了这个了。也不行。anifi...

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

476. DOM元素-视频 [ 80%]

...a设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video();class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF...

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

477. 3D场景-地形场景 [ 80%]

..."../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCu...

来源: Laya_示例 发布时间: 20241001

478. MovieClip 报错 [ 80%]

...代码来添加保护:var data:*; data=Loader.getRes(_url); if (!data) { event(Event.ERROR,"file not find"); return; } //保护修改-----start------------------ var atlasData:Object = Loader.getAtlas(_atlasPath); if(!atlasData) { event(Event.ERROR,"file not find"); return; } //保护修改-----en...

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

479. [LayaNative2]pad外设键盘无法捕获到KEY_DOWN,KEY_UP,KEY_PRESS事件 [ 80%]

...请问该如何解决?   以下事件无法触发: Laya.stage.on(Laya.Event.KEY_PRESS, this, this.handleKeypress); Laya.stage.on(Laya.Event.KEY_DOWN, this, this.handleKeydown); Laya.stage.on(Laya.Event.KEY_UP, this, this.handleKeyup);   版本:2.13.3 附件 : --> 事件代码.docx 2024-02-28...

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

480. 2D物理-桥 [ 80%]

...FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBridge(); this.eventListener(); } createBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addCompon...

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