大约有 375 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0042 秒)
...et u8 = tex.getData(0, 0, tex.width, tex.height) let u = new Uint8Array(u8.length) let len = u8.length / 4 let i = 0 for (let x = len; x >= 0; x--) { for (let y = 0; y < 4; y++) { u[i * 4 + y] = u8[x * 4 + y] } i++ } u8 = u u = new Uint8Array(u8.length) len = u8.length / s.height let l2 = len ...
来源: Laya_社区 发布时间: 20210911
... function changeSkin() { mCurrSkinIndex++; if (mCurrSkinIndex >= mSkinList.length) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } function completeHandler() { play(); } function play() { mCurrIndex++; if (mCurrIndex >= mArmature.getAnimNum()) { mCurrIndex = 0; } mArma...
来源: Laya_示例 发布时间: 20241125
..."keyCode"]]; } function keyboardInspector() { var numKeyDown = keyDownList.length; var newText = '[ '; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH ...
来源: Laya_示例 发布时间: 20241125
...rite = spirit3D; for (var i = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat = meshSprite.meshRender.sharedMaterials[i]; mat.disableLight(); } } for (var i = 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { private scene: Laya.Sc...
来源: Laya_示例 发布时间: 20241125
...s, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Lay...
来源: Laya2.0_示例 发布时间: 20241125
...p(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } completeHandler() { this.play(); } play() { mCurrIndex++; let aniNum = mArmature.getA...
来源: Laya2.0_示例 发布时间: 20241125
...sKey.split("/"); let pkg: any = fgui.UIPackage.getByName(urlNames[urlNames.length - 1]); if (!pkg) { let descData: any = Laya.loader.getRes(resKey + "." + fgui.UIConfig.packageFileExtension); if (!descData) { this.onComplete(resKey, otherLoadData, complete, progress, loadData); return; } pkg = fgui....
来源: Laya_社区 发布时间: 20191107
...age.addChild(logger); } keyboardInspector() { let numKeyDown = keyDownList.length; let newText = '[ '; console.log(numKeyDown); for (let i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_M...
来源: Laya2.0_示例 发布时间: 20241125
...p(1,this,this.onEnterFrame); } private onEnterFrame():void{ if(this.points.length>0){ if(this.i<this.points.length){ this.ball.x = this.points[this.i].x; this.ball.y = this.points[this.i].y; this.i++; } } } private onClick():void{ // //角度归位 // this.angle = Math.PI; // //小球归位 th...
来源: Laya_社区 发布时间: 20171108
无法对载入的材质操作。sharedMaterials的length为0 问题描述:如图 想要改变该材质的高光specularColor的颜色使得材质看起来更自然(我知道可以直接设置光源的高光颜色directionLight.specularColor= new Vector3(0,0,0);但是我想只针对这3d模型设...
来源: Laya_社区 发布时间: 20170314