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

大约有 872 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0055 秒)

601. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 50%]

...?代码如下:   /**Created by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性...

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

602. laya.physics.joint.GearJoint_API3.0 [ 50%]

...ernals Only exported Menu Globals "laya/physics/joint/GearJoint" GearJoint Class GearJoint 齿轮关节:用来模拟两个齿轮间的约束关系,齿轮旋转时,产生的动量有两种输出方式,一种是齿轮本身的角速度,另一种是齿轮表面的线速度 Hierarchy JointBase...

来源: Laya3.0_api 发布时间: 20231115

603. 使用以下代码打开超大分辨率图片 WebGL 模式无法正常显示 [ 50%]

...打开超大分辨率图片 WebGL 模式无法正常显示 // 程序入口 class GameMain{ constructor() { Laya.init(900,1440,Laya.WebGL); //WebGL Laya.Stat.show(0,0); let sp:Laya.Sprite = new Laya.Sprite; //sp.loadImage("comp/big.png"); //读取分辨率小的图片 正常 sp.loadImage("comp/hug.pn...

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

604. TS版本的官方示例,导出到玩一玩,在读写文件时能存不能读,读不出来,甚至直接读取会显示字符串里边有乱码。。。。 [ 50%]

...er.js的 var LocalStorageAdpt=(function(){ function LocalStorageAdpt(){} __class(LocalStorageAdpt,'BKLaya.adptcodes.LocalStorageAdpt'); LocalStorageAdpt._readData=function(){ if (!BK.FileUtil.isFileExist(LocalStorageAdpt.dataPath)){ return null; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt...

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

605. laya.maths.Matrix3x3_API3.0 [ 50%]

...ited Externals Only exported Menu Globals "laya/maths/Matrix3x3" Matrix3x3 Class Matrix3x3 Matrix3x3 类用于创建3x3矩阵。 Hierarchy Matrix3x3 Implements IClone Index Constructors constructor Properties elements DEFAULT Methods clone cloneTo determinant identity invert rotate scale translate t...

来源: Laya3.0_api 发布时间: 20231115

606. laya.d3.webxr.core.WebXRInput_API3.0 [ 50%]

...nals Only exported Menu Globals "laya/d3/WebXR/core/WebXRInput" WebXRInput Class WebXRInput author miner 类用来描述输入设备 Hierarchy EventDispatcher WebXRInput Index Constructors constructor Properties _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FR...

来源: Laya3.0_api 发布时间: 20231115

607. laya.physics.joint.PulleyJoint_API3.0 [ 49%]

...ls Only exported Menu Globals "laya/physics/joint/PulleyJoint" PulleyJoint Class PulleyJoint 滑轮关节:它将两个物体接地(ground)并彼此连接,当一个物体上升,另一个物体就会下降 Hierarchy JointBase PulleyJoint Index Constructors constructor Properties _extra _singleto...

来源: Laya3.0_api 发布时间: 20231115

608. 背景音乐来回切换报错 [ 49%]

...gt;>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudioMusic,methodName:stopBackgroundMusic 07-16 13:28:21.072 1331-1384/com.layabox.game E/LayaBox: >>>>>>>>>>>>before 07-16 13:28:21.112 1331-1384/com.l...

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

609. laya.utils.PerformancePlugin_API3.0 [ 49%]

...nals Only exported Menu Globals "laya/utils/Performance" PerformancePlugin Class PerformancePlugin Hierarchy PerformancePlugin Index Properties PERFORMANCE_LAYA PERFORMANCE_LAYA_2D PERFORMANCE_LAYA_3D PERFORMANCE_LAYA_3D_PHYSICS PERFORMANCE_LAYA_3D_PHYSICS_CHARACTORCOLLISION PERFORMANCE_LAYA_3D_PHYS...

来源: Laya3.0_api 发布时间: 20231102

610. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 49%]

....Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; t...

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