大约有 6,677 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0125 秒)
Laya_社区(6030) Laya2.0_文档(147) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya2.0_示例(57) Laya3.0_文档(47)
...ot后,精灵位置显示位置不正确 我的版本是1.7.14,设置了sprite的pivot和pos,结果位置不正确 // 程序入口 class GameMain { private sp: Laya.Sprite; constructor() { Laya.init(2000, 1500); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" this.sp = new Laya.Sprite();...
来源: Laya_社区 发布时间: 20171230
.../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
... 4 个回复 183*****755 赞同来自: qq1194265406 var staticMesh = Laya.Sprite3D.load("tlj/tlj.lh"); staticMesh.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { sprite.transform.position = new Laya.Vector3(0,0,-100); }); 在游戏中 调整模型的位置需要在场景加...
来源: Laya_社区 发布时间: 20170316
...模式设置。 或者用坐标转换,把大矩形的中心点转化为sprite的localposition 这个方法更简单 2018-07-19 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 W 相关问题 发起问题须知,必看!!!不按提...
来源: Laya_社区 发布时间: 20180719
...18-08-17 0 0 分享 微博 QZONE 微信 Barry Allen 赞同来自: import Sprite = Laya.Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() thi...
来源: Laya_社区 发布时间: 20180123
...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var txt; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser....
来源: Laya_示例 发布时间: 20241002
...ll = this.Matter.Bodies.circle(200, 200, 120); //自己定义的ui let layaSprite = new MatterSprite(); //对齐 layaSprite.anchorX = layaSprite.anchorY = 0.5; //背景色 layaSprite.graphics.drawCircle(120, 120, 120, '#ffffff'); ball.layaSprite = layaSprite; 2018-04-23 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20180423
锯齿问题 求破 var avatarContainer = new Sprite(); var imgTextTure = Laya.loader.getRes('http://q3.qlogo.cn/g?b=qq&s=100&nk=842256713'); var imgSprite = new Sprite(); imgSprite.x = 300 imgSprite.graphics.drawTexture(img...
来源: Laya_社区 发布时间: 20170209
...法在h5中也实现这种镂空可以让鼠标穿透的效果呢? var m:Sprite = new Sprite(); m.graphics.beginFill(0x0, 0.5); m.graphics.drawRect(50, 50, 100, 100); m.graphics.drawRect(75, 75, 50, 50); m.graphics.endFill(); 附件 : --> 2015-12-18 1 条评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20151218
...r.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(width + height * 2, width + height * 2); box.pivot(box.width / 2, box.height / 2); box.pos(posx, posy); Laya.Laya.stage.addChild(box); let boxBody = box.addComponent(Laya.RigidBody); let box1Shape = box.add...
来源: Laya2.0_示例 发布时间: 20241002