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

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

471. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 56%]

...教Laya.BitmapFont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new L...

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

472. 图片像素精准点击问题! [ 56%]

... on(Laya.Event.MOUSE_DOWN 来检测。   下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP...

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

473. laya.ui.ViewStack [ 56%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ViewStackProperties | Methods | Events Packagelaya.uiClasspublic class ViewStackInheritanceViewStack Box UIComponent Sprite Node EventDispatcher ObjectImplements IItem ViewStack 类用于视图堆栈类,用于视图...

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

474. FlashBuilder中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 56%]

...代码如下: ```typescript package { import laya.display.Text; public class HelloLayabox { public function HelloLayabox() { //初始化引擎 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; //设置文本颜色为白色,默认颜色为黑色 txt....

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

475. laya.ui.ScaleBox [ 56%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保...

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

476. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 56%]

...真阅读文章,现在改成在具体的使用说明: 主域:public class LayaUISample { public function LayaUISample() { //微信小游戏适配库初始化 MiniAdpter.init(true,false); //初始化引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bg...

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

477. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 56%]

...题。 2018-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this...

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

478. 材质-BlinnPhong材质加载 [ 56%]

... this, function () { layaMonkey.transform.rotate(this.rotation, false); });class BlinnPhongMaterialLoad { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NON...

来源: Laya_示例 发布时间: 20251209

479. laya.ui.Image [ 56%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ImageProperties | Methods | Events Packagelaya.uiClasspublic class ImageInheritanceImage UIComponent Sprite Node EventDispatcher ObjectSubclasses AdvImage Image 类是用于表示位图图像或绘制图形的显示对...

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

480. 主类引用了laya.utils.Mouse这个类,报错:所访问的属性 Mouse 可能未定义 [ 56%]

...义啊,我在想自己建个空的类就好了 package flash.ui { public class Mouse { public function Mouse() { } public static function hide():void { } public static function show():void { } } } cuixueying • 2017-03-17 19:46 有没有例子,上传一个,我们看下!

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