大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0096 秒)
Laya_社区(702) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(75) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 代码写错了: private function ChangeMusicVolume():void { SoundManager.setMusicVolume(0); } 用setMusicVolume就可以了! 2017-05-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...
来源: Laya_社区 发布时间: 20170518
...iniGame: boolean; /** 抖音小游戏*/ static onTTMiniGame: boolean; /** @private */ static onFirefox: boolean;//TODO:求补充 /** @private */ static onEdge: boolean;//TODO:求补充 /** @private */ static onLayaRuntime: boolean; 例如,我们可以这样在代码中判断: //如果是Chrome...
来源: Laya3.0_文档 发布时间: 20251010
...ProgressBar; import laya.utils.Handler; public class ProgressBar_Example { private var progressBar:ProgressBar; public function ProgressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/pro...
来源: Laya3.0_api 发布时间: 20231115
...已邀请: 与内容相关的链接 提交 2 个回复 ssqhu 赞同来自: private function onPauseBtnClick(e:Event):void { //阻止后续节点的监听器 e.stopPropagation(); } 用这个方法就可以阻止后面的事件了。 ...
来源: Laya_社区 发布时间: 20170224
...','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=Loader.getRes('apes/...
来源: Laya_社区 发布时间: 20170519
...Box { public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image; //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image(); //this.text = new Laya.Label(); this.addChild(th...
来源: Laya_社区 发布时间: 20180507
对象池使用报错 private Board = new GiftBoard(); let board = Laya.Pool.getItemByClass("board",this.Board); 报下面这个错 cls is not a constructor 2017-12-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20171211
....transform.rotate(this.rotation, false); });class BlinnPhongMaterialLoad { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene:...
来源: Laya_示例 发布时间: 20251209
...法没有效果。 B.text = "123456"; A.on(Event.CLICK,this,OnClick); private function OnClick():void { B.select(); } 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...
来源: Laya_社区 发布时间: 20170525
...bled属性)。 Node onAsynLoaded(url:String, data:*, params:Array):void private Sprite3D once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher[override] 增加事件侦听器,以使侦听器能够接收事件通知,此侦听事件响应一次后则自动移除侦...
来源: laya_api 发布时间: 20170929