大约有 1,493 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0076 秒)
Laya_社区(918) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(73) laya_api(2) Laya2.0_api(2)
...lor = "#ffffff"; letter.font = "Impact"; letter.fontSize = 180; Laya.stage.addChild(letter); return letter; } ``` 代码运行时,由于update回调是每一帧都在执行,所以在缓动的过程中,有一种闪光字的效果。如动图8所示。  (动图8)
来源: Laya2.0_文档 发布时间: 20210715
...也可以继续在laya中对camera进行操作: var scene = Laya.stage.addChild(Laya.Scene.load("res/layaScene.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function (sceneTemp) { var camera = sceneTemp.getChildByName("Main Camera"); camera.transform.translate(new Laya.Vector3(0, 0, 200)); ...
来源: Laya_社区 发布时间: 20170828
...代码如下: ```typescript this.text.text="原text文本"; Laya.stage.addChild(this.text); //不优化的写法是:this.text.text="替换的text文本"; this.text.changeText("替换的text文本"); ``` #### 2、尽可能使用对应的文本组件 每个不同的组件都是有自己独特的...
来源: Laya2.0_文档 发布时间: 20210715
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint g...
来源: Laya3.0_api 发布时间: 20231102
...名.png) img.skin = "test/c1.png"; //添加到舞台上显示 Laya.stage.addChild(img); ``` 代码运行效果如图9所示:  (图9) 如图9所示,我们成功的从图集中取出小图资源并应用到项目中,而代码中的`sink`值`test/c1.png`,其实就是图...
来源: Laya2.0_文档 发布时间: 20210715
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint g...
来源: Laya3.0_api 发布时间: 20231102
...名.png) img.skin = "test/c1.png"; //添加到舞台上显示 Laya.stage.addChild(img); ``` 代码运行效果如图9所示:  (图9) 如图9所示,我们成功的从图集中取出小图资源并应用到项目中,而代码中的`sink`值`test/c1.png`,其实就是图...
来源: Laya2.0_文档 发布时间: 20210714
...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentP...
来源: Laya3.0_api 发布时间: 20231115
...lor = "#FFFFFF"; letter.font = "Impact"; letter.fontSize = 180; Laya.stage.addChild(letter); return letter; } } } ``` 代码运行时,由于update回调是每一帧都在执行,所以在缓动的过程中,有一种闪光字的效果。如动图8所示。  (动图8) Lay...
来源: Laya2.0_文档 发布时间: 20210715
...时间,单位:毫秒。 animation.play();//播放动画。 Laya.stage.addChild(animation);//将 animation 对象添加到显示列表。 } } } example Animation_Example(); function Animation_Example(){ Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef...
来源: Laya3.0_api 发布时间: 20231115