• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)

751. 设置音乐音量不能立即生效 [ 59%]

...1 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 代码写错了: private function ChangeMusicVolume():void { SoundManager.setMusicVolume(0); } 用setMusicVolume就可以了! 2017-05-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

来源: Laya_社区 发布时间: 20170518

752. 浏览器接口 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...iniGame: boolean; /** 抖音小游戏*/ static onTTMiniGame: boolean; /** @private */ static onFirefox: boolean;//TODO:求补充 /** @private */ static onEdge: boolean;//TODO:求补充 /** @private */ static onLayaRuntime: boolean; 例如,我们可以这样在代码中判断: //如果是Chrome...

来源: Laya3.0_文档 发布时间: 20251010

753. laya.ui.ProgressBar_API3.0 [ 58%]

...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

754. 如何阻止 点击 继续传递 [ 58%]

...已邀请: 与内容相关的链接 提交 2 个回复 ssqhu 赞同来自: private function onPauseBtnClick(e:Event):void          {             //阻止后续节点的监听器             e.stopPropagation();     }   用这个方法就可以阻止后面的事件了。 ...

来源: Laya_社区 发布时间: 20170224

755. 分享:Graphics下cmds命令流的使用! [ 58%]

...','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

756. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 58%]

...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

757. 对象池使用报错 [ 58%]

对象池使用报错 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

758. 材质-BlinnPhong材质加载 [ 58%]

....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

759. TextInput的select()方法问题 [ 58%]

...法没有效果。 B.text = "123456"; A.on(Event.CLICK,this,OnClick);   private function OnClick():void {          B.select(); } 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...

来源: Laya_社区 发布时间: 20170525

760. laya.d3.core.Sprite3D [ 58%]

...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