大约有 2,783 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0086 秒)
Laya_社区(2254) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
....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
... /**定义一个变量来接收Box组件实例**/ private monkeyBox: Laya.Sprite; constructor() { } /** *设置owner函数,可以直接获取到添加附加脚本的组件实例 **/ public set owner(value: any) { this.monkeyBox = value; //自定义的脚本会有时序问题,所以在此添加...
来源: Laya_社区 发布时间: 20180622
...被折叠 要回复问题请先登录 发起人 biaofengzheng 相关问题 sprite旋转以后,但是原来碰撞检测rect没有旋转 分享:自定义事件派发与侦听(A页面派发 B页面侦听) TextInput重写onFocus和onBlur事件监听不到 关于遍历产生的sprite的点击事...
来源: Laya_社区 发布时间: 20170704
..._Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya.Sprite这里不写会报错,我想请教下,我这个类仅有算法,应该怎么样写。 2018-07-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180705
.../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
....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
...知,必看!!!不按提问规则的,官方拒绝解答!!! sprite旋转以后,但是原来碰撞检测rect没有旋转 unity导出粒子文件问题 laya针对页游耗用内存大的问题是如何解决的? LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版...
来源: Laya_社区 发布时间: 20191230
...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
...onkey2.png"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() { //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载多张图片,在图片资源加载成功后,通过...
来源: Laya_社区 发布时间: 20180226
...任意数字,画出的折线位置不会有任何变动(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