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

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

541. Text的中划线(删除线) [ 51%]

...               case 'left':                 default :                     break ;                 }             y+=this._charSize.height;             this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineCol...

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

542. Clip组件Bug:Play方法无法结束循环 [ 51%]

...改源码,现在有插件开发,修改源码会有问题): export default class GifView extends Laya.Clip {     /**      *开始帧位置      *      * @private      * @memberof GifView      */     private frameIndex = 0;     /**      *...

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

543. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 51%]

...ight))的代码来做讲解: > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; publ...

来源: Laya2.0_文档 发布时间: 20210715

544. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 51%]

...ight))的代码来做讲解: > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; publ...

来源: Laya2.0_文档 发布时间: 20210715

545. 2.0 beta UI Button无法获取 [ 51%]

...); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { constructor() { super(); this.btn_attack.on("click", this, this.onAttack); } private onAttack(): void { // TODO } } 上面代码,btn_attack 按钮是 undefined 对象,没有...

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

546. laya.d3.component.physics.Collider [ 51%]

...umber):Boolean Parameters ray:Ray hitInfo:RaycastHit maxDistance:Number (default = NaN)ReturnsBooleanFri Sep 29 2017, 06:34 PM +08:00

来源: laya_api 发布时间: 20170929

547. laya.resource.Resource_API3.0 [ 51%]

...(count?: number): void Defined in laya/resource/Resource.ts:203 Parameters Default value count: number = 1 Returns void _clearReference _clearReference(): void Defined in laya/resource/Resource.ts:218 清除引用 Returns void _removeReference _removeReference(count?: number): void Defined in laya/r...

来源: Laya3.0_api 发布时间: 20231115

548. Laya2.7.1 射线提示rayCast未定义 [ 51%]

Laya2.7.1 射线提示rayCast未定义 export default class click3d extends Laya.Script3D{ constructor() { super(); //创建场景 this.scene = Laya.stage.addChild(new Laya.Scene3D()); //添加相机 this.camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 100))); this.camera.transform.translate(...

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

549. laya.ui.Panel [ 51%]

...子对象及从父节点移除自己。 Parameters destroyChild:Boolean (default = true) — (可选)是否同时销毁子节点,若值为true,则销毁子节点,否则不销毁子节点。 destroyChildren()method override public function destroyChildren():void 销毁所有子对象,不...

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

550. 如何使用vscode编译laya项目 [ 51%]

...compilerOptions:{removeComments: true}}, include:/.*.ts/, }), glsl({ // By default, everything gets included include: /.*(.glsl|.vs|.fs)$/, sourceMap: false, compress:false }), /*terser({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false ...

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