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

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

951. TypeError: Cannot read property '_layer' of null; at Function.FrustumCulling.renderObjectCulling [ 71%]

...rror: Cannot read property 'cursor' of undefined错误 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprit...

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

952. as3的类里定义的字段编译后会被注释 [ 71%]

...字段编译后会被注释 AS3中下面的一个简单的数据类 public class Demo { public var a:int; public var b:String; public function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,...

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

953. 如何启用摇一摇 [ 71%]

...ontroller { import model.Model; /** * ... * @author 偷心枫贼 */ public class Controller_yao1yao { public function Controller_yao1yao(model:Model) { __JS__('_model = model'); __JS__('var SHAKE_THRESHOLD = 100'); __JS__('var last_update = 0'); __JS__('var x = y = z = last_x = last_y = last_z = 0;'...

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

954. layaair2.0 js的程序入口在哪?跟以前的不一样了 。 [ 71%]

... QZONE 微信 张佩斌 赞同来自: 同一个bundle.js里面,有一个class Main 还有一个class Main$1 执行了一次Main,还执行了一次Main$1 , 是怎么回事呢 怎么生成的两个 2019-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题...

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

955. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...数据源 必须要在代码中给List组件设置数据源。 const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台后 onEnable...

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

956. laya.d3.graphics.VertexElementFormat [ 71%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames VertexElementFormatMethods | Constants Packagelaya.d3.graphicsClasspublic class VertexElementFormatInheritanceVertexElementFormat Object ... Public Methods  MethodDefined By  getElementInfos(element:String):Array[stat...

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

957. as3 自定义组件问题 [ 71%]

...aEditor\renders\custom\ScaleButton.js; 那么ScaleButton.xml->内容: className="component.ScaleButton"。是对的吗 mboat • 2017-09-25 22:14 还有ScaleButton.js,内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__...

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

958. UI-Slider [ 71%]

...Script三种开发语言、LayaAirIDE让项目开发更高效。let skins; class UI_Slider { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stag...

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

959. laya.maths.Vector2_API3.0 [ 71%]

...nherited Externals Only exported Menu Globals "laya/maths/Vector2" Vector2 Class Vector2 Vector2 类用于创建二维向量。 Hierarchy Vector2 Implements IClone Index Constructors constructor Properties x y ONE ZERO Methods clone cloneTo forNativeElement fromArray setValue toArray writeTo dot equ...

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

960. 怎么在api中找到 Laya.loader.load [ 71%]

...了Laya。 http://layaair.ldc.layabox.com/api/index.html?category=Core&class=Laya 但是里面貌似只有一个loader https://layaair.ldc.layabox.com/api/#loader 打开这里面也没有关于load的详细说明。 在论坛里看到,好像详细说明是在这里 http://layaair.ldc.layabox.c...

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