大约有 1,276 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
... Stage = 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_C...
来源: Laya_社区 发布时间: 20180529
...("datiPage.scene"); this.close(); } a和b都是独立的ts类, export default class a extends ui.a {……} 同时a和b都是对应的dialog ui文件a.scene 和b.scene的runtime属性关联过去的。
来源: Laya_社区 发布时间: 20190521
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/physicsCannon/CannonPhysicsCollider" CannonPhysicsCollider Class CannonPhysicsCollider PhysicsCollider 类用于创建物理碰撞器。 Hierarchy CannonPhysicsTriggerComponent CannonPhysicsColl...
来源: Laya3.0_api 发布时间: 20231102
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity中的模型导出后在laya中显示不正常 我的tieldmap生成的json文件里data是这种格式...
来源: Laya_社区 发布时间: 20170608
...用Laya.HtmlVideo播放视频 * @ 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....
来源: Laya_社区 发布时间: 20240305
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/particle/shader/value/ParticleShaderValue" ParticleShaderValue Class ParticleShaderValue 2D粒子 Hierarchy Value2D ParticleShaderValue Index Constructors constructor Properties ALPHA alpha clipMat...
来源: Laya3.0_api 发布时间: 20231115
...dler = Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Hold { private HOLD_TRIGGER_TIME: number = 1000; private apePath: string = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() ...
来源: Laya_示例 发布时间: 20260819
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.st...
来源: Laya2.0_示例 发布时间: 20260819
...prite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.MiniAdpter.init(); Laya.init(740, 400); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALI...
来源: Laya_社区 发布时间: 20180115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/MotorJoint" MotorJoint Class MotorJoint 马达关节:用来限制两个刚体,使其相对位置和角度保持不变 Hierarchy JointBase MotorJoint Index Constructors constructor...
来源: Laya3.0_api 发布时间: 20231115