大约有 135 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
... by LayaAirIDE, please do not make any modifications. */ package ui.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("tes...
来源: Laya_社区 发布时间: 20181024
...nel下的参考Label,var=myref,左右相对布局。 代码如下:import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { ...
来源: Laya_社区 发布时间: 20170720
...get 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 请问下加...
来源: Laya_社区 发布时间: 20200917
laya2.0 ts脚本需要 import ** from ** 问题 ts脚本 现在 import ** from 只能用相对路径. 这样文件夹多了. 每次import 头晕. 想改为绝对路径.这样就不要关注各种./../../ 1.我尝试修改 tsconfig.json 里的 "baseUrl" 属性 编辑器不提示错误.但是运行...
来源: Laya_社区 发布时间: 20180920
...不暴露到全局空间去,结果就需要像node服务端代码一样import来import去。 前端写过网页的觉得难受到飞起。 2018-11-02 1 1 分享 微博 QZONE 微信 赞同来自: demo上传一下这边测一下 2018-10-06 0 4 分享 微博 QZONE 微信 177*****949 赞同来...
来源: Laya_社区 发布时间: 20180926
...架 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 预设怎么在代码中使用 动画混合无效(版本2.6) 求助关于TiledMap的版本...
来源: Laya_社区 发布时间: 20170302
...ngjingmeng - Tink 赞同来自: 我新写了个例子,发现个新问题 import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 10...
来源: Laya_社区 发布时间: 20180308
...rue; txt.color = "#FFFFFF"; Laya.stage.addChild(txt); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constru...
来源: Laya_示例 发布时间: 20251130
...FFFF"; Laya.stage.addChild(txt); } } new Interaction_Mouse();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constru...
来源: Laya2.0_示例 发布时间: 20251130
...本(根据电脑性能而定,本例为10000): ```javascript package { import laya.display.Sprite; import laya.display.Text; import laya.utils.Stat; import laya.webgl.WebGL; public class Test { private var text:Text; public function Test() { Laya.init(550,400,WebGL); Stat.show(); var textBox:Spri...
来源: Laya2.0_文档 发布时间: 20210715