大约有 1,162 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0048 秒)
Laya_社区(832) Laya2.0_文档(186) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
...super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715
....img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.Handler.create(this, this.updateMsk, null, false); } private updateMsk():void { this.img.mask.graphics.clear(true); this.img.mask.graphics.drawRect(100 - this.img.x, 0, this.img.width, 300, "#ffffff"); } 附件 : --> LayaTest...
来源: Laya_社区 发布时间: 20190722
...e; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载...
来源: Laya_社区 发布时间: 20161107
....lm", "../../res/threeDimen/skinModel/PangZi/PangZi-doubipangzi.lm"], Laya.Handler.create(this, onComplete)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 spri...
来源: Laya_示例 发布时间: 20250219
...ne3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform....
来源: Laya2.0_文档 发布时间: 20210714
... ```java Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Handler.create(this,changeColor,[letterText]), i * 100); ``` 由于需要增加新的引用,这次贴出全部的示例代码。 TweenDemo.js: ```javascript //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 ...
来源: Laya2.0_文档 发布时间: 20210715
...setup() { Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){ var dialog = new Image("../../res/ui/dialog (3).png"); dialog.scaleX = 2; dialog.scaleY = 2; var panel = new Panel(); panel.vScrollBarSkin = ""; panel.hScro...
来源: Laya_社区 发布时间: 20180201
...new Laya.Skeleton(); tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{ tmpSpine.showSkinByIndex(2);//皮肤ID:1,2 tmpSpine.play("idea",true); }),1); tmpSpine.x = 365; tmpSp...
来源: Laya_社区 发布时间: 20200318
....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelS...
来源: Laya_社区 发布时间: 20170406
...Scene Laya.Scene3D.load('LayaScene_OldHouse/Conventional/OldHouse.ls',Laya.Handler.create(this,this.onComplete)); 的onComplete方法进行赋值的吗?这里赋值的onComplete(scene) 应该是Scene3D 的吧? 努力 • 2019-05-24 21:22 大佬,我将代码上传了,您看一下,谢谢
来源: Laya_社区 发布时间: 20190523