大约有 988 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0117 秒)
...t listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 但是好像之前也有,所以不知道这是怎么回事,谁解决了麻烦说一下,谢谢了 2019-02-1...
来源: Laya_社区 发布时间: 20190211
...告 laya.utils.Tween.to(self.richText, { x: 0 }, 10000, null, laya.utils.Handler.create(self, self.onTween1)); 然后执行游戏里面代码的时候有时候会卡住不动,没报错,非必现。 //播开始动画 var kaishi = new StartAnimView(); this.addChild(kaishi); kaishi.playAnim(); t...
来源: Laya_社区 发布时间: 20200113
...`typescript //加载模型 Laya.Sprite3D.load("Conventional/shoot.lh",Laya.Handler.create(this,function(sp:Laya.Sprite3D){ //获取到Meshsprite3d var cube = scene.addChild(sp.getChildAt(0)) as Laya.MeshSprite3D; //获取刚体 var cubeRigid:Laya.Rigidbody3D = cube.getComponent(Laya.Rigidbody3D)...
来源: Laya2.0_文档 发布时间: 20210714
... CheckBox 实例。 package { import laya.ui.CheckBox; import laya.utils.Handler; public class CheckBox_Example { public function CheckBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check...
来源: Laya3.0_api 发布时间: 20231115
...ader.IMAGE }, { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Retry to load: comp/image.png [error]Failed to load: comp/image.png 修改导出的TestPage.json里面对应控件引用的skin值加上对应路径 "skin":"unpack...
来源: Laya_社区 发布时间: 20171230
... Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Laya.Handler.create(this, function(mat) { //设置相机的清除标识为天空盒 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer = camera.skyRenderer; //创建天空盒的mesh s...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Laya.Handler.create(this, function(mat) { //设置相机的清除标识为天空盒 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyRenderer = camera.skyRenderer; //创建天空盒的mesh s...
来源: Laya2.0_文档 发布时间: 20210715
...数。 ```typescript //加载模型 Sprite3D.load("Conventional/shoot.lh",Handler.create(this,function(sp:Sprite3D):void{ //获取到Meshsprite3d var cube:MeshSprite3D = scene.addChild(sp.getChildAt(0)) as MeshSprite3D; //获取刚体 var cubeRigid:Rigidbody3D = cube.getComponent(Rigidbody3D); }...
来源: Laya2.0_文档 发布时间: 20210714
...载拖尾 Laya.Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Laya.Handler.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移...
来源: Laya2.0_文档 发布时间: 20210715
...载拖尾 Laya.Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Laya.Handler.create(this,function(sp){ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移...
来源: Laya2.0_文档 发布时间: 20210715