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

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

111. 刚接触laya的一系列问题 [ 67%]

...子没?我尝试直接在后面添加,无效,得到的提示:[ts] Classes can only extend a single class; 3,关于锚点找到锚点设置无效的问题了,我在构造函数设置的,没效果,但是如果在延迟两帧以后设置就可以了,用不了button,只能用this...

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

112. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 67%]

...n HttpRequestExtension() { HttpRequestExtension.__super.call(this); } Laya.class(HttpRequestExtension, 'HttpRequestExtension', _super); var __proto = HttpRequestExtension.prototype; __proto.send = function (url, data, method, responseType, headers) { (method === void 0) && (method = "get"); (respons...

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

113. 新手引导在ios浏览器表现异常 [ 67%]

...导在ios浏览器表现异常 代码: module laya  {     export class Sprite_Guide      {         private width = 750;         private height = 1334;         constructor()          {             Laya3D.init(this.width, this.height); ...

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

114. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...码如下: import { ItemBoxBase } from "./ItemBox.generated"; const { regClass, property } = Laya; @regClass() export class Script extends ItemBoxBase { constructor() { super(); } get dataSource(): any { return super.dataSource; } set dataSource(value: any) { super.dataSource = value; if (!value) ...

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

115. 为什么自定义shader大图正常,小图就被缩小了 [ 67%]

...s.iNum = 0; function myShaderSprite() { myShaderSprite.super(this); } Laya.class(myShaderSprite, "myShaderSprite", _super); /* 初始化此类 texture纹理对象 vb顶点数组 ib顶点索引数组 */ myShaderSprite.prototype.init = function(texture,width_Size,height_Size,vb,ib){ this.vBu...

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

116. Dialog [ 66%]

...CK,this,function(){           this.destroy();     })  } Laya.class(Controller, "Controller", stUI); 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 那个层是归 ...

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

117. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...结合1.3节的脚本控制,在脚本中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "...

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

118. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 66%]

..., 求大大指点, 感激   附上渐变SVG文字的代码:   /** * this class is a extension of texts with gradient color  */ var effect; (function (effect) {     var GradientText = (function (_super) {         const style = {             DEFAULT: "default",             VERTICA...

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

119. Laya.stage.on(Laya.Event.DISPLAY,this,this.ddddd); 无法监听到。 [ 66%]

...候会触发该事件,测试代码如下 主文档类 package { public class TestAir { public function TestAir() { Laya.init(600,400); var aaa:AAA=new AAA(); Laya.stage.addChild(aaa); } } }显示对象类 package { import laya.display.Sprite; import laya.events.Event; public class AAA extends Spri...

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

120. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 66%]

...ayaAir3]Pool对象池获取继承对象时会返回基类对象 const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Po...

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