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

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

1011. 设置pivot后,精灵位置显示位置不正确 [ 83%]

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

1012. laya.filters.GlowFilter_API3.0 [ 83%]

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

1013. 评论功能没用的吗? [ 83%]

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

1014. pivot问题 [ 83%]

...模式设置。 或者用坐标转换,把大矩形的中心点转化为sprite的localposition 这个方法更简单 2018-07-19 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 W 相关问题 发起问题须知,必看!!!不按提...

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

1015. 这种进度条怎么实现? [ 83%]

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

1016. 鼠标交互-鼠标交互 [ 83%]

...种开发语言、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

1017. matterjs渲染laya的ui [ 83%]

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

1018. 锯齿问题 求破 [ 83%]

锯齿问题 求破  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

1019. Laya能不能镂空填充区域实现穿透点击? [ 83%]

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

1020. 2D物理-复合碰撞器 [ 83%]

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