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

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

11. 关于layaCanvas大小自适应的建议 [ 63%]

...sition: absolute; left: 0px; top: 0px; background: rgb(0, 0, 0); transform-origin: 0px 0px 0px; transform: matrix(1, 0, 0, 1, 0, 0); width: 100%; height: 100%; display: block;"></canvas></div> 目前layaCanvas的大小是自适应屏幕的大小,建议改为自适应layaContainer更...

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

12. viewportPointToRay产生的射线始终有偏差,是为什么? [ 62%]

...xt = Laya.WebGLContext; export class SceneScript extends Script { private _originPosition:Vector3 = new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); private _point:Vector2 = new Vector2(); private _camera:Camera; private _ray:Ray = ne...

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

13. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 62%]

...好的,在谷歌下报错运行不了   报的是这个错 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. 2016-08-31 0 2 分享 微博 QZONE 微信 xiaobear250 赞同来自: 写得...

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

14. htmlDiv中img图片大小问题 [ 61%]

...= new Laya.HTMLDivElement(); let imgUrl = 'images/kb-emoji-U+E056.png'; // origin width/height: 64/64px; //let imgStr = `<img src="${imgUrl}" width="30" height="30"></img>`; let imgStr = `<img src="${imgUrl}" style="width:30px;height:30px"></img>`; htmlDiv.style.color = '#fff...

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

15. js进度,进度,js场景进度效果 [ 60%]

...果 new function() { var className = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky8/kj.json", "res/atlas/lucky8/mh.j...

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

16. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 58%]

...的克隆接口instantiate /** * 创建精灵的克隆实例。 * @param original 原始精灵。 * @param parent 父节点。 * @param worldPositionStays 是否保持自身世界变换。 * @param position 世界位置,worldPositionStays为false时生效。 * @param rotation 世界旋转,worldPosit...

来源: Laya3.0_文档 发布时间: 20240624

17. ts项目加载version.json失败 [ 56%]

...输出: Failed to load file:///E:/LayaEmptyRelease/version.json: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. [warn]Retry to load: version.json 资源版本清单文件不存在,不使用资源版本管理。忽略ERR_FILE_NOT_FOUND...

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

18. socket通讯返回数据 [ 56%]

...ction: Upgrade Pragma: no-cache Cache-Control: no-cache Upgrade: websocket Origin: file:// Sec-WebSocket-Version: 13 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) LayaAirIDE/1.12.2 Chrome/56.0.2924.87 Electron/1.6.6 Safari/537.36 Accept-Encoding: gzip, defla...

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

19. laya.d3.core.Sprite3D [ 53%]

...定事件类型注册了任何侦听器。 EventDispatcher  instantiate(original:Sprite3D, parent:Node = null, worldPositionStays:Boolean = true, position:Vector3 = null, rotation:Quaternion = null):Sprite3D[static] 创建精灵的克隆实例。 Sprite3D isMouseEvent(type:String):Boolean 检测...

来源: laya_api 发布时间: 20170929

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

...量线并不是射线真正的路径) this.phasorSprite3D.line(this.ray.origin, new Laya.Vector4(1,0,0,1), position , new Laya.Vector4(1,0,0,1));   //如果与物品相交,画三面边线 if(this.hit.sprite3D) { //从碰撞信息中获取碰撞处的三角面顶点 var trianglePositions:Array<...

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