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

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

111. 升级到1.78beta版后,包编译错误 [ 66%]

...0,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'.   Types of property 'create' are incompatible.     Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: number, depthStencilFormat?: number,...' is not assigna...

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

112. 导航标签组组件 · LayaAir3.0文档 · LAYABOX [ 66%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tab }) public tab: Laya.Tab; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.tab.pos(200, 200); this.tab....

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

113. socket.sent [ 66%]

...e.addChild(new Btn1 ());//加入舞台 } } new Game();       class Btn1 extends ui.v1UI{ public socket: Laya.Socket; public byte: Laya.Byte; constructor(){ super(); this.btn1.on(Laya.Event.CLICK,this,this.Btn1On); } Btn1On():void{ // socket.connect(“192.168.0.1.133”,8899); console.log("kjk"...

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

114. layaMaxUI里面的ui继承不到 [ 66%]

...回复 tea 赞同来自: 不清楚为啥  export default class gameMain extends ui.test.gameMain 这样也不行 2018-11-15 0 0 分享 微博 QZONE 微信 lsx968542 赞同来自: 是不是没有导入文件 import { ui } from "./ui/layaMaxUI"; 2018-11-16 0 1 分享 微博 QZONE 微信 为什么被...

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

115. Laya2.0引包问题!!! [ 66%]

...mport { FairyUtils } from './../utils/FairyUtils'; export class BaseSprite extends fairygui.GComponent TypeError: Object prototype may only be an Object or null: undefined preload.js:55 at setPrototypeOf (<anonymous>) 2019-02-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

116. 小白求助,为何这个工程的 onOpened 没有执行 [ 66%]

.../ui/layaMaxUI"; import MyDialogUI = ui.MyDialogUI;  export class MyDialog extends MyDialogUI { constructor() { super(); }  onOpened(param: any): void { console.log("mylog------" ); } } 附件 : --> 示例工程.zip 2019-09-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

117. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 66%]

...** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; public function ImageRunTime() { //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮...

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

118. 位图切片组件 · LayaAir3.0文档 · LAYABOX [ 66%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Clip }) public clip: Laya.Clip; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.clip.pos(Laya.stage.width...

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

119. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 66%]

...转了添加了这个脚本的物体) > ```typescript class MonkeyScript extends Laya.Script3D { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation,...

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

120. 分包项目, 加载js时报错 [ 65%]

...关的链接 提交 2 个回复 sevennqi 赞同来自: 这个是我改成extends Box:  package {     import laya.ui.Box;     import laya.display.Text;     import laya.ui.View;     /*[COMPILER OPTIONS:ForcedCompile]*/     public class loading100 extends Box     {         publ...

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