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

大约有 215 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0039 秒)

111. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 63%]

...unt:int  [read-only] 粒子存活个数。 Implementation     public function get aliveParticleCount():intautoRandomSeedproperty public var autoRandomSeed:Boolean是否使用随机种子。 colorOverLifetimeproperty colorOverLifetime:ColorOverLifetime 获取生命周期颜色,注意:如修...

来源: Laya2.0_api 发布时间: 20190513

112. 关于环形进度条,进度不能重置问题 [ 62%]

... 提交 2 个回复 cuixueying 赞同来自: gls_laybox var IndexView = (function(_super){ this.angle; this.draw; this.box; this.circle; function IndexView(){ IndexView.super(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.bo...

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

113. 在Canvas模式下 drawTexture出错 [ 62%]

... 21:05 浏览: 1392 关注: 2 人 熊猫大侠 • 2018-01-19 09:20 public function Test1View() { Laya.timer.loop(10,this,draw); } private function draw():void { texture = Laya.loader.getRes("comp/lhjicon_5.png"); var temp:Texture = Texture.createFromTexture(texture,0,0,texture.sourceWidth...

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

114. 为何定时时钟函数可以执行,但是得到的值却不会实时刷新 [ 62%]

... 比如 this.loadNum=0; //资源加载进度中函数 _proto_.onProgress = function(){ //显示加载进度 Laya.timer.loop(100,this,this.ontime); this.txt_load.text = "资源加载中,当前进度:" + parseInt(this.loadNum) + "%"; //this.onComplete(); } //时钟定时执行函数 _proto_.ontime...

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

115. 动画混合问题,Avatar动画混合报错. [ 62%]

...te (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:22941:22)   at Function.Animator._update (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:23368:47)   at Scene3D.__proto._update (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:32831:12)   at Stage.__proto.render (file:///F...

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

116. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 62%]

...dTime:int; private var cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } publi...

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

117. 高级应用-寻路导航 [ 62%]

... ]; Laya.loader.create(resource, Laya.Handler.create(this, onLoadFinish)); function onLoadFinish() { //初始化3D场景 this.scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/TerrainScene/XunLongShi.ls")); //删除原始资源中包含的默认相机 var camera = this.scene.ge...

来源: Laya_示例 发布时间: 20240930

118. 关于裁剪的问题 [ 62%]

...Rectangle(0, 0, 0, loginUI.bbbar.height) Game.timer.loop("progress", this, function() { //console.log("loginUI.bar.value = ", loginUI.bar.value); loginUI.bbbar.viewport.width = loginUI.bbbar.viewport.width + 0.2 //console.log("loginUI.bbbar.viewport.width = ", loginUI.bbbar.viewport.width); }, 1000,...

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

119. 【官网代码】加载dom音频报错,怎么回事? [ 62%]

...rivate var analyser:Object;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioContext || Browser.window.webkitAudioContext;audioContext = new AudioContext();analyser = audioContext.createAnalyser();analyser.fftSize = 256;Laya.stage.on...

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

120. 分享 修复webaudiosound 循环播放的声音 俩个失声问题 [ 61%]

... = Laya.WebAudioSoundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!th...

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