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

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

2601. SCALE_FIXED_WIDTH适配屏幕的问题 [ 43%]

...Chrome/66.0.3359.126 MQQBrowser/6.2 T     代码如下,另附上demo  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.tit...

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

2602. 2.3.0beta 各种bug [ 43%]

...物理引擎碰撞被禁用的,需要重新开启 修改 laya.d3.js   class PhysicsCollider extends PhysicsTriggerComponent {      constructor(collisionGroup = Physics3DUtils.COLLISIONFILTERGROUP_DEFAULTFILTER, canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(c...

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

2603. LayaAir下TTF字体的使用方式? [ 43%]

...t laya.display.Text; import laya.ui.Image; import laya.webgl.WebGL; public class TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="哈哈哈...

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

2604. 射线检测报错,outHitInfo.sprite3D=null; [ 43%]

射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene ...

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

2605. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 43%]

...的情况。请问下是引擎不兼容呢,还是代码写的不完善  class Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.tit...

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

2606. 射线检测-碰撞器混合 [ 43%]

...eyMeshSprite3D.addComponent(DrawBoxColliderScript); this.debug = false; } }class ColiderDemo { /**键盘的上下左右控制猴子位移**/ private scene:Laya.Scene; private camera:Laya.Camera; private layaMonkey:Laya.Sprite3D; private layaMonkeyMeshSprite3D:Laya.SkinnedMeshSprite3D; private _tempU...

来源: Laya_示例 发布时间: 20250226

2607. KeyNotFoundException: The given key was not present in the dictionary. unityAir3d1.7.16 [ 43%]

...et_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj) LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameO...

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

2608. laya.d3.math.Vector3 [ 43%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Vector3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Vector3InheritanceVector3 ObjectImplements laya.d3.core.IClone Vector3 类用于创建三维向量。 Public Properties PropertyDefined By ...

来源: laya_api 发布时间: 20170929

2609. list item 添加事件后无法监听 [ 43%]

...(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas L...

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

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

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