大约有 3,041 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0114 秒)
Laya_社区(1094) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(112)
...= Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换至Canvas // Laya.init(800, 600, WebGL); //此处为微信小游戏小改动 Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; ...
来源: Laya_社区 发布时间: 20180529
....scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。
来源: Laya_社区 发布时间: 20190521
... /** * ... * @author yung */ public class LayaAirDemo { private var red:Sprite; private var box:Sprite; public function LayaAirDemo() { Laya.init(1200, 800); Laya....
来源: Laya_社区 发布时间: 20161122
...示分数的界面,比如我写了A.ui文件,自动生成一个ts类,class A extends ui.AUI,但是这个ui命名空间并不存在,如果我手动改成extends Laya.View(.ui文件里用的View标签),那么我如何让这个类去使用这个.ui文件呢?就像eui里指定skin一样...
来源: Laya_社区 发布时间: 20180323
...比较像 只是多了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了 如果谁有更好的方法 一起讨论研究.. 2018...
来源: Laya_社区 发布时间: 20180805
...是为了规避IDE不识别.mc文件名的问题,在laya.core.js里面的class URL中存在映射关系的,还需要您提供复现的demo与复现的微信IDE版本。URL.safeFileExtConversionMap = { "rendertexture": "rt.json", "videotexture": "rt.json", "controller": "controller.json", "mc": "...
来源: Laya_社区 发布时间: 20250505
... this.mainCameraAnimation = null; this.scene = null; } Laya.class(ObjectRotate, "ObjectRotate", Laya.Script); //这是什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) { var _this = this; ObjectRotate.__super.prototype._initialize.call...
来源: Laya_社区 发布时间: 20170810
...aya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var templete:Templet;//动画模板类 private var skeleton:Skeleton;//骨骼动画类 private var curNum:int=0;//curNum%2求余数,切换不同皮肤 public function LayaAirDemo() { Laya.init(Br...
来源: Laya_社区 发布时间: 20170324
...age资源 以下为加载代码,请问这样使用是否正确: class ShuiPao extends Sprite3D { constructor() { super(); let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); ...
来源: Laya_社区 发布时间: 20170608
...deo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("htt...
来源: Laya_社区 发布时间: 20240305