大约有 1,326 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0058 秒)
...ke(): void { let sprite = new Laya.Sprite(); // 添加到舞台 Laya.stage.addChild(sprite); } 3.2 显示图片 图片的显示是游戏开发的基础,Sprite类中用于显示图片是 Sprite.loadImage 和 Sprite.texture。 3.2.1 loadImage /** * <p>加载并显示一个图片。相当于加...
来源: Laya3.0_文档 发布时间: 20250103
...rite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); Laya.stage.addChild(sp); Tween.to(sp,{x:300,y:300,alpha:0.5},1000,null,Handler.create(this,function():void { sp.destroy(); })); Complete事件你没写错,就是那么写的 2017-06-08 0 0 分享 微博 QZONE 微信 ohkei - as3...
来源: Laya_社区 发布时间: 20170608
...ld(this._che_node); .... //根据情节加载节点 this._curnode=scene.addChild(this._che_node); 上面加载的节点光照会出问题 2017-12-15 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liuzhengcai 相关问题 发起...
来源: Laya_社区 发布时间: 20171215
... //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene); this.isDelete=true; // console.log(Scene3DControl.GameSceneB); } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export defaul...
来源: Laya_社区 发布时间: 20190903
...图片信息放在了精灵里面, 分别使用了mapLayer._children[0].addChild(sp);和Laya.stage.addChild(sp);可以将精灵显示出来,但是没不是添加在地图的图层中,因为我在进行地图拖动时精灵并没有跟着地图一起拖动,而是没有移动,这样的话并...
来源: Laya_社区 发布时间: 20181211
...加载出错 //添加自定义模型 //this.box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){ //Laya.Sprite...
来源: Laya_社区 发布时间: 20190514
...bg.width >> 1, Laya.stage.height - bg.height >> 1); this.owner.addChild(bg); } private createTimerAnimation(): void { this.counter = new Laya.Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) /...
来源: Laya3.0_文档 发布时间: 20240910
...; gamewbz.removeSelf(); hallwbz = hallwbz || new HallViewwbz(); Laya.stage.addChild(hallwbz); 这样写 有没有问题,,,用这样的方式写 ,我切换 了 3个页面 ,然后发现这3个页面都还存在,,这样是不是有问题 附件 : --> 2017-10-24 添加评论 免费...
来源: Laya_社区 发布时间: 20171024
...10 0 0 分享 微博 QZONE 微信 时光123 赞同来自: 使用Laya.stage.addchild. 或。this.owner.addChild 一样的错 2022-08-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 时光123 相关问题 缓动...
来源: Laya_社区 发布时间: 20220809
...reate(this,load)); function load(){ let ctn2=new Laya.Sprite(); Laya.stage.addChild(ctn2); var gq=new Laya.Sprite(); gq.loadImage("res/img/m1.jpg",100,100,100,100); ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,Is); } function Is(){ console.log(1); } 2018-08-06 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180806