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

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

271. laya.ui.List_API3.0 [ 40%]

...属性值。 label.size(100, 20); addChild(label); } } example (function (_super){ function Item(){ Item.__super.call(this);//初始化父类 this.graphics.drawRect(0, 0, 100, 20, "#ff0000"); var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。 label.text = "100000";//...

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

272. 求ShuriKenParticle3D用法 [ 39%]

...ces/Effects/Materials/Effect_yu_jinbi_xulie.lmat");             super(material);             {                 let s = this.particleSystem;                 s.isPerformanceMode = true;                 s.duration = 20;         ...

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

273. 微信小游戏渲染开放域卡顿处理 [ 38%]

...前修改有效,兼容ui         constructor() {             super();             this.once(Laya.Event.DISPLAY, this, this.onCreate);             this.once(Laya.Event.UNDISPLAY, this, this.onDestroy);         }         /**          * 加入场景          */...

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

274. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 38%]

...blic curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new Laya.Vector3();...

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

275. laya.ui.Dialog_API3.0 [ 38%]

... laya.utils.Handler.create(this, loadComplete));//加载资源 (function (_super) {//新建一个类Dialog_Instance继承自laya.ui.Dialog。 function Dialog_Instance() { Dialog_Instance.__super.call(this);//初始化父类 var bg = new laya.ui.Image("resource/ui/bg.png");//新建一个 Image 类的...

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

276. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 37%]

...: {"name": "render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结...

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

277. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 37%]

...ypeError: this.preinitialize is not a function            !1,i.__super.call(this),this._layout=B.EMPTY,this.preinitialize(),this.createChildren(),this.initial            TypeError: this.preinitialize is not a function                at i (http://stand.alone.version/...

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

278. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 36%]

...gClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): void { //如果...

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

279. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 35%]

...例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), ###### 添加物理脚本 只有为节点添加...

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

280. 微信小游戏提审后,提示说代码侵权 [ 34%]

...continue; if(arr2[i].indexOf("class ") !=-1) continue; if(arr2[i].indexOf("super(") !=-1) continue; if(arr2[i].indexOf("public constructor") !=-1) continue; if(arr2[i].indexOf("else") !=-1) continue; if(arr2[i].indexOf("else if") !=-1) continue; if(arr2[i].indexOf("//") !=-1) continue; if(arr2[i].in...

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