• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,276 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)

911. 使用laya官方示例代码制作微信小游戏无法显示 [ 54%]

... 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

912. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 53%]

...("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

913. laya.d3.physicscannon.CannonPhysicsCollider_API3.0 [ 53%]

...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

914. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 53%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity中的模型导出后在laya中显示不正常 我的tieldmap生成的json文件里data是这种格式...

来源: Laya_社区 发布时间: 20170608

915. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 53%]

...用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

916. laya.particle.shader.value.ParticleShaderValue_API3.0 [ 53%]

...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

917. 鼠标交互-Hold [ 53%]

...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

918. 文本-滚动文本 [ 53%]

...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

919. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 53%]

...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

920. laya.physics.joint.MotorJoint_API3.0 [ 53%]

...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