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

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

221. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 64%]

...rivate _blood_area: Area = new AreaEntity( 100, 20 ); public _blood_value: number;  /** 魔鬼 */ private _demon_ani: Laya.Animation; // toset: private _demon_area: Area = new AreaEntity( 100, 100);  /** 靶心,参照物是魔鬼 */ private _target_ani: Laya.Animation;  // toset: private _target_...

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

222. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 64%]

...全覆盖下,不能只处理get或set,如: class A {  protected _id:number = 1;    public get id():number { return this._id }  public set id(value:number){     this._id = vaule;  } } class B extends A {   public set id(value:number){     this._id = value + 1;   } } class C extends A {...

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

223. 使用laya官方示例代码制作微信小游戏无法显示 [ 64%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

224. laya.d3.core.scene.Scene3D_API3.0 [ 63%]

...ns Scene3D Properties _ShadowMapupdateFrequency _ShadowMapupdateFrequency: number = 1 Defined in laya/d3/core/scene/Scene3D.ts:425 lightShadowMap 更新频率 @internal Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _ownGraphics _ownGraphics: boolean...

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

225. animate 动画播放 怎么把攻击 开火 合起来播放 [ 63%]

...画最后一帧的索引值, */ private aniUrls(aniName: string, length: number): any { var urls: any = []; for (var i: number = 1; i < length; i++) { //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("imgs/role/wp116/" + aniName + i + ".png"); } return urls; ...

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

226. UI-Label [ 63%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

227. IDE-显示IDE创建的界面 [ 63%]

...st赋值,先获得一个数据源数组 var arr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.rend...

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

228. IDE-显示IDE创建的界面 [ 63%]

...st赋值,先获得一个数据源数组 var arr: Array = []; for (var i: number = 0; i < 100; i++) { arr.push({ label: "item " + i, clip: i % 9 }); } //给list赋值更改list的显示 this.list.array = arr; //还可以自定义list渲染方式,可以打开下面注释看一下效果 //list.rend...

来源: Laya2.0_示例 发布时间: 20200319

229. 缓存工具-layadcc · LayaAir3.0文档 · LAYABOX [ 63%]

...具 Arguments: dir 输入目录 Options: -V, --version output the version number -o, --output &lt;outDir&gt; 指定输出目录,如果是相对目录,则是相对于当前目录 (default: "dccout") -m, --merge 是否合并小文件 -y, --overwrite 是否覆盖输出目录(保留历史记录需...

来源: Laya3.0_文档 发布时间: 20240726

230. 缓动-缓动函数演示 [ 63%]

...ass Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...

来源: Laya2.0_示例 发布时间: 20240930