大约有 215 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0040 秒)
Laya_社区(139) Laya3.0_api(21) laya_api(14) Laya2.0_api(14) Laya2.0_文档(11) Laya_示例(6) Laya3.0_文档(5) Laya2.0_示例(5)
...unt:int [read-only] 粒子存活个数。 Implementation public function get aliveParticleCount():intautoRandomSeedproperty public var autoRandomSeed:Boolean是否使用随机种子。 colorOverLifetimeproperty colorOverLifetime:ColorOverLifetime 获取生命周期颜色,注意:如修...
来源: Laya2.0_api 发布时间: 20190513
... 提交 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
... 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
... 比如 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
...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
...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
... ]; 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_示例 发布时间: 20241123
...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
...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
... = 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