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

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

2071. spine动画放大后,遮罩显示不正常 [ 53%]

...置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //...

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

2072. laya.ui.UIEvent [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames UIEventProperties | Methods | Constants Packagelaya.uiClasspublic class UIEventInheritanceUIEvent Event Object UIEvent 类用来定义UI组件类的事件类型。 Public Properties Hide Inherited Public Properties Show...

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

2073. 加载图片显示为黑屏(附代码),为什么? [ 53%]

...display.Sprite; import laya.ui.Panel; import laya.utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); ru...

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

2074. Image属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 53%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Image)。 ​ **Image 组件的资源示例:** ​ ![图片0.png](img/1.png) ​ (图1) ​ **Image 组件拖放到编辑区后显示效果:** ​ ![图片0.png](img/2.png) ​ (图2) ### 1.2 Image ...

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

2075. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...属性入口中。在脚本文件中添加如下示例代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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

2076. 我照的列子做,Protobuf,结果报错! [ 53%]

...r   ts code: ============================================================ class Game{    private ProtoBuf:any = Browser.window.dcodeIO.ProtoBuf;     ... }     err code: ============================================================ TypeError: Cannot read property 'ProtoBuf' of undefined at new ...

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

2077. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 53%]

new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor class GameMain{ private tMap:Laya.TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/Mari...

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

2078. movieClip stop 没有用 [ 53%]

... package { import laya.ani.swf.MovieClip; import laya.events.Event; public class DragonMaskDemo { public function DragonMaskDemo() { Laya.init(550, 300); swfPlay(); } private function swfPlay():void { var mc:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,this,onLoaded,[mc]); Lay...

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

2079. laya.d3.core.scene.ITreeNode [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ITreeNodeMethods Packagelaya.d3.core.sceneInterfacepublic interface ITreeNodeImplementors OctreeNode ... Public Methods  MethodDefined By  addTreeNode(renderObj:BaseRender):voidITreeNode  cullingObjects(boundFrustum:...

来源: laya_api 发布时间: 20170929

2080. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 53%]

... 2024-11-01 0 1 分享 微博 QZONE 微信 雄二 赞同来自: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("...

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