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

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

4021. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 39%]

...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

4022. 真机调试 开启子域后 提示出现window is not defined [ 39%]

...      ↓按钮回调 绘制子域到工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; v...

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

4023. laya.physics.PhysicsDebugDraw_API3.0 [ 39%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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

4024. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 39%]

...fnt与png文件同名 mBitmapFont.loadFont("res/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ //如果位图字体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); var ...

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

4025. laya.map.TileAniSprite_API3.0 [ 39%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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

4026. laya.d3.webxr.core.WebXRCamera_API3.0 [ 39%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Camera Inherited from Camera.clone Overrides RenderableSprite3D.clone Defined in laya/d3/core/Camera.ts:758 Returns Camera contains contains(no...

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

4027. laya.ui.Slider_API3.0 [ 39%]

... showTips1; //带参数的自定义鼠标提示 clip.toolTip = new Handler(this,showTips2, ["clip"]); } private function showTips1():void { _testTips.label.text = "这里是按钮[" + btn1.label + "]"; tip.addChild(_testTips); } private function showTips2(name:String):void { _testTips.label.text = "...

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

4028. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 39%]

...und1,ground2,ground3,ground4]);             Laya.timer.loop(1000, this, add_F);         }         private function add_F():void         {             var rockOptions:Object = {                 stiffness: 1,                 friction: 1,   ...

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

4029. laya.ui.Image_API3.0 [ 39%]

...宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,...

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

4030. laya.particle.Particle2D_API3.0 [ 38%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Inherited from Node.contains Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 ...

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