大约有 146 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0032 秒)
Laya_社区(113) Laya2.0_示例(10) Laya_示例(9) Laya3.0_api(4) laya_api(3) Laya2.0_api(3) Laya3.0_文档(2) Laya2.0_文档(2)
...class CustomMaterial extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseT...
来源: Laya_社区 发布时间: 20170815
...alpha属性并赋值给Item对象 if(e._dataSource.isAlpha) { var alphaNum:Number=e._dataSource.isAlpha; e.alpha=alphaNum; }//如果未设置alpha的项,则默认透明度为1 else { e.alpha=1; } }附件已经上传,可以参考,把alpha改成你对应的visible属性即可! TreeAlpha.rar...
来源: Laya_社区 发布时间: 20170717
...t point2 = this.arr[1].transform.position; let angle: number = Math.atan2((point2.x - point1.x), (point2.z - point1.z)) * (180 / Math.PI); //角度 this.arr[0].transform.localRotationEulerY = angle; console.log("position = ",this.a...
来源: Laya_社区 发布时间: 20201120
...ctor3; private lastPosition:Laya.Vector2; private distance:number = 0.0; private disVector1:Laya.Vector2; private disVector2:Laya.Vector2; private isTwoTouch:boolean; private first:boolean; private twoFirst:boolean; constructor(){ ...
来源: Laya_社区 发布时间: 20190531
...ctor3; private lastPosition:Laya.Vector2; private distance:number = 0.0; private disVector1:Laya.Vector2; private disVector2:Laya.Vector2; private isTwoTouch:boolean; private first:boolean; private twoFirst:boolean; constructor(){ ...
来源: Laya_社区 发布时间: 20190605
...({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false })*/ ] }).then(bundle => { return bundle.write({ file: workSpaceDir + '/bin/js/bundle.js', format: 'iife', name: 'laya', sourcemap: false }); }).catch(err=>{ console.log(err); }) ...
来源: Laya_社区 发布时间: 20200918