大约有 538 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0046 秒)
Laya_社区(426) Laya2.0_文档(37) Laya3.0_文档(22) Laya2.0_示例(12) Laya_示例(11) laya_api(11) Laya3.0_api(10) Laya2.0_api(9)
...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 SpineDemo.js,代码编写如下: ```javascript //初...
来源: Laya2.0_文档 发布时间: 20210715
...候会触发该事件,测试代码如下 主文档类 package { public class TestAir { public function TestAir() { Laya.init(600,400); var aaa:AAA=new AAA(); Laya.stage.addChild(aaa); } } }显示对象类 package { import laya.display.Sprite; import laya.events.Event; public class AAA extends Spri...
来源: Laya_社区 发布时间: 20170210
...如下所示: ```typescript /* ImageRunTime逻辑类 */ export default class ImageRunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(La...
来源: Laya2.0_文档 发布时间: 20210715
...—————————————————————— public class MainActivity extends Activity{ private IPlugin mPlugin = null; private IPluginRuntimeProxy mProxy = null; boolean isLoad=false; boolean isExit=false; private WebView webView = null; ...
来源: Laya_社区 发布时间: 20170517
...s.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = function(e){ onWxSign1(); } return sg_sign; })(ui.sg_sig...
来源: Laya_社区 发布时间: 20170725
...aEditor\renders\custom\ScaleButton.js; 那么ScaleButton.xml->内容: className="component.ScaleButton"。是对的吗 mboat • 2017-09-25 22:14 还有ScaleButton.js,内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__...
来源: Laya_社区 发布时间: 20170925
...碰到过这样的问题? 一个common.ts里面定义了export default class SDispatcher implements ISDispatcher{},然后在其他类里面继承。并导包。export default class xxxx extends SDispatcher{},在vs里面没有发现报错。进行指令编译后,运行bundle.js。却...
来源: Laya_社区 发布时间: 20200817
...6](img/6.png) (图6) #### 2.1.2 创建地图示例 ```java // 程序入口 class GameMain{ private tMap:Laya.TiledMap; constructor() { //初始化舞台 Laya.init(Laya.Browser.width,Laya.Browser.height,Laya.WebGL); //创建TiledMap实例 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视...
来源: Laya2.0_文档 发布时间: 20210715
... no exported member 'particle'. libs/LayaAir.d.ts(26700,11): error TS2417: Class static side 'typeof RenderTarget2D' incorrectly extends base class static side 'typeof Texture'. Types of property 'create' are incompatible. Type '(w: number, h: number, surfaceFormat?: number, surfaceType?: n...
来源: Laya_社区 发布时间: 20170721
...办法指定,只能创建完ts文件,手动修改interface或abstract class代码,如果在创建时有一个选项感觉会方便很多,个人建议 附件 : --> 2016-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20161219