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

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

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

...Air3]V3.2 | 调试结果不一致,导致无法判断结果? 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.camer...

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

42. 物理Bodies绑定Laya.Sprite [ 65%]

...动吗 冰水blue • 2018-06-04 21:15 @(^_^):http://brm.io/matter-js/docs/classes/Body.html 自己看看吧。 冰水blue • 2018-05-23 14:49 已经添加到world了啊。

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

43. 自定义UI导致编辑器无显示 [ 65%]

...;& (clipY=1); this._clipX=clipX; this._clipY=clipY; this.skin=url; } __class(LabelAtlas,'laya.customUI.LabelAtlas',_super); var __proto=LabelAtlas.prototype; return LabelAtlas; })(Clip) xml如下: <?xml version="1.0" encoding="utf-8"?> <uiComp> <!-- drag:0-...

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

44. 分享一个自己做的游戏公告功能,跑马灯效果 [ 64%]

...Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ priva...

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

45. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 64%]

...Sample.ts文件如下: // 程序入口 import UIButton = laya.ui.Button; class GameMain{     constructor()     {         Laya.init(600,400);         let body = laya.utils.Browser.document.body;         let input = laya.utils.Browser.createElement("input");        ...

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

46. 看一下这是什么问题,运行报错 [ 64%]

...l1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

47. 加载.lh文件 运行后黑屏 无法显示 [ 64%]

...一下  图片为运行的结果 import GameConfig from "./GameConfig";  class Main {     //private scene:Laya.Scene3D;     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0);     constructor() {         this._upVector3 = new Laya.Vector...

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

48. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 64%]

...vas; import laya.resource.Texture; import rain.core.StageReferance; public class Main { private var _view:Sprite; public function Main() { Config.isAntialias = true;//抗锯齿 //初始化引擎 Laya.init(1024, 768); //Stat.show(); Laya.stage.bgColor = "#ccc"; Laya.stage.scaleMode = Stage.SCALE_SHOW...

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

49. EventDispatcher接收不到参数 [ 64%]

...super){ function Dispatcher(){ Dispatcher.super(this); }; //注册类 Laya.class(Dispatcher,"Dispatcher",_super); //实例EventDispatcher类 Dispatcher.eventDispatcher = new Laya.EventDispatcher(); //发送事件 Dispatcher.Emit = function(InName,agv){ //派发事件 console.log("agv-->"+agv); Di...

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

50. 如何在游戏入口处获取对象的子对象 [ 64%]

...ap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" ...

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