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

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

181. 编译时候报错 如下 怎么解决呢 [ 58%]

...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 assignable to ty...

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

182. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 58%]

...? const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {   testData = new Laya.Vector3(1, 1, 1);   @property(Laya.Camera)   camera: Laya.Camera;    onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this.camera...

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

183. 播放视频只有声音没有图像 [ 58%]

...有 let SoundManager = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅林茂 - 静かな古都.m...

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

184. cannot read property '1'of null [ 58%]

...grandSon继承自son这种情况?如果存在的话在脚本中添加 //extends Laya.Script的注释试试 2022-01-06 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 173*****785 相关问题 laya2.0加载3d场景报错Uncaught TypeError...

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

185. 创建laya的视图销毁destroy()清除不了 [ 58%]

...不了 创建laya的视图销毁destroy()清除不了。  class Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSe...

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

186. Laya.Script的派生类的_update函数不工作? [ 58%]

Laya.Script的派生类的_update函数不工作? 我从Laya.Script类extends了一个自己的class,贴在一个物体上,运行的时候脚本的_start函数中的log正常打印出来了,但是_update函数中的log没有打印 _update(state:Laya.RenderState) { console.log("state:", st...

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

187. 预设/场景的导出(JavaScript-3D基础(JS)-LayaAir3D之3D场景可视化编辑) [ 58%]

...我们直接修改GameUI类)。 ```javascript export default class GameUI extends Laya.Scene { constructor(){ super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** ...

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

188. Image加载完成后的图片大小重设问题 [ 58%]

...示都是原来设定的大小。示例代码如下:   class PlayGame extends ui.PlayGameUI {     constructor() {         super();        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.c...

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

189. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 58%]

...t { regClass, property } = Laya; @regClass() export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建...

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

190. 性能测试-卡通人物2 [ 58%]

...Frame % 60 === 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { cons...

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