大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0146 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...法就是不生效 var mFontName = "myFont"; var mBitmapFont = new Laya.BitmapFont(); mBitmapFont.loadFont("res/bitmapFont/test.fnt", new Laya.Handler(this, onLoaded)); function onLoaded(){ mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(mFontName,mBitmapFont); let txt = new La...
来源: Laya_社区 发布时间: 20191108
...= "#232628"; createInput(); })(); function createInput() { var inputText = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.text = "这段文本不可编辑,但可复制"; inputText.edit...
来源: Laya_示例 发布时间: 20260303
...。子域界面发布模式选内嵌模式。 PS:子域我只能用new ui界面,才不会出现wx.getFilexxxx not a function的问题,有哪个大佬知道怎么用Laya.opne.scen()可以展示子域的话,可以告诉我一下哈哈哈哈。 附件已删,自己研究去吧再...
来源: Laya_社区 发布时间: 20190307
...cript //创建方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; //方向光的颜色 directionLight.color = new Vector3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.transform.worldMatrix; mat.setForward(new Vector3(-1.0, ...
来源: Laya2.0_文档 发布时间: 20210715
... WindowManager.LayoutParams.FLAG_FULLSCREEN); mProxy = new RuntimeProxy(this); mPlugin = new GameEngine(this); mPlugin.game_plugin_set_runtime_proxy(mProxy); mPlugin.game_plugin_set_option("localize", "true"); mPlugin.game_p...
来源: Laya_社区 发布时间: 20170423
ts项目 模块问题 b文件写了个class ,怎么在a文件new class? export 显示未定义,require也用不了 //b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this...
来源: Laya_社区 发布时间: 20180804
...r = "#232628"; Stat.show(); this.startFun(); } startFun() { this.templet = new SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError); } parseComplete() { this.skeleton = th...
来源: Laya2.0_示例 发布时间: 20260303
... 示例如下: public function init(e:Event):void { var sound:Sound=new Sound(); sound.load(new URLRequest("xxx.xxx.xxx")); var sc:SoundChannel=sound.play(); var st:SoundTransform=new SoundTransform(); st.volume=0.5; sc.soundTransform=st; } 2016-03-11 1 0 分享 微博 QZONE 微信 为什么...
来源: Laya_社区 发布时间: 20160311
... null; private long mPTTStartTime = 0; private YouMeIMCallback mCallback = new YouMeIMCallback(); public Handler m_Handler = new Handler(Looper.getMainLooper()); public Looper m_looper = Looper.getMainLooper(); private Context context; private static YIMMain that = null; public void initYouMeIMEngin...
来源: Laya_社区 发布时间: 20170722
为什么显示不了 var sp = new Laya.Sprite(); sp.graphics.drawRect(this.mouse_x, this.mouse_y, 10, 10, "#ff0000"); //var htmlC:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0).getCanvas().toDataURL(); var htmlCanvas:Laya.HTMLCanvas = sp.drawToCanvas(375,440,0,0); var texture:Laya.Texture = new La...
来源: Laya_社区 发布时间: 20180412