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

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

1021. laya.d3.animation.AnimationClip_API3.0 [ 54%]

...Only exported Menu Globals "laya/d3/animation/AnimationClip" AnimationClip Class AnimationClip AnimationClip 用于动画片段资源。 Hierarchy Resource AnimationClip Index Constructors constructor Properties _id destroyedImmediately islooping lock name url uuid DEBUG Accessors cpuMemory destr...

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

1022. 载入场景报错 [ 54%]

...Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya...

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

1023. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 54%]

...?   随便弄一个窗口,都是这样,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width...

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

1024. laya.d3.core.light.LightSprite [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LightSpriteProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite ...

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

1025. HTMLIframeElement 使用出错?请大神指点 [ 54%]

...4 21:27 import HTMLIframeElement = Laya.HTMLIframeElement; // 程序入口 class GameMain{ constructor() { Laya.init(600,400); //Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.stage.screenMode = Laya.Stage....

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

1026. 微信开发者工具,打开Laya发布的包。编译报请先初始化小游戏适配库,详细教程 [ 54%]

...名1112.png Wechat Lib:1.9.98, 2018.4.4 17:39:27 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} VM163:1 请先初始化小游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error @ VM163:1 Browser.__init__ @ code.js:7131 (anonymous) @ code.js:70...

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

1027. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...代码设定ColorPicker相关的属性。示例代码如下: const { regClass, property } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件...

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

1028. prop 识别不到 [ 54%]

...de报未定义,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     }      onAwake() {        ...

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

1029. 在开启webgl模式下,每次运行texture的getPixels方法内存都会增加 [ 54%]

....Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; t...

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

1030. 如何过滤拥有相同name的节点对象? [ 54%]

...储和使用 简单示例: package { import laya.display.Sprite; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(550,400); var box:Sprite=new Sprite(); var sp1:Sprite=new Sprite(); sp1.name="aaa"; var sp2:Sprite=new Sprite(); sp2.name="aaa"; var sp3:Sprite=new Sprite(); sp3.na...

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