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

大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0086 秒)

981. 不带格式后缀的图片无法成功加载 [ 68%]

....getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀...

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

982. 一个技术文档的问题 [ 68%]

... /**定义一个变量来接收Box组件实例**/ private monkeyBox: Laya.Sprite; constructor() { } /** *设置owner函数,可以直接获取到添加附加脚本的组件实例 **/ public set owner(value: any) { this.monkeyBox = value; //自定义的脚本会有时序问题,所以在此添加...

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

983. 有一个按钮注册CLICK事件以后 会触发两次响应事件 [ 68%]

...被折叠 要回复问题请先登录 发起人 biaofengzheng 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 分享:自定义事件派发与侦听(A页面派发 B页面侦听) TextInput重写onFocus和onBlur事件监听不到 关于遍历产生的sprite的点击事...

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

984. ja语言怎么样创建一个工具类在其他地方调用 [ 68%]

..._Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya.Sprite这里不写会报错,我想请教下,我这个类仅有算法,应该怎么样写。 2018-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

985. laya.filters.GlowFilter_API3.0 [ 68%]

.../GlowFilter.ts:101 Returns Float32Array Static _filter _filter(this: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Inherited from BlurFilter._filter Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number y: number Re...

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

986. 动画不显示 [ 68%]

....utils.Browser;     import laya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh; ...

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

987. 关于Laya.Quaternion.createFromAxisAngle旋转角度不正确的问题 [ 68%]

...知,必看!!!不按提问规则的,官方拒绝解答!!! sprite旋转以后,但是原来碰撞检测rect没有旋转 unity导出粒子文件问题 laya针对页游耗用内存大的问题是如何解决的? LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版...

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

988. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 68%]

...cullingMask : 2147483647 destroyed : false enableRender : true name : "New Sprite3D" sky : SkyDome _bufferState : BufferState _bindedIndexBuffer : IndexBuffer3D _nativeVertexArrayObject : WebGLVertexArrayObjectOES __proto__ : BufferStateBase _indexBuffer : IndexBuffer3D _slices : 48 _stacks : 48 _ve...

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

989. 新人求教!!! [ 68%]

...onkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() {       //初始化引擎       Laya.init(1334,750);      //设置舞台背景色      Laya.stage.bgColor = "#ffffff";      //加载多张图片,在图片资源加载成功后,通过...

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

990. Graphics.drawLines设置x轴y轴的初始位置的参数失效 [ 68%]

...任意数字,画出的折线位置不会有任何变动(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { //初始化舞台 Laya.init(500, 300, WebGL); drawSomething(); })(); function drawSomething() { sp = new Sprite(); Laya.stage.addChil...

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