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

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

31. 怎么设置图片的动态pos改变啊?? [ 87%]

...无限循环改变alpha? Texture图片能否进行翻转? matter中layasprite怎么改变图片大小? ios14系统下 blendMode='lighter' 图片异常 求问shader中的attribute变量怎么动态修改 如何设置Sprite的宽高和点击区域? 将list里的scrollBar设置mouseWheelEnable=fa...

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

32. 设置2D骨骼动画Skeleton pos为(0,0)时问题 [ 87%]

...叠 要回复问题请先登录 发起人 Kelvin 相关问题 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 骨骼动画播放完后的回调时间 Animation 的createFrames 使用已经加载的图集缓存动画失败 为什么ani动画执行的不...

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

33. DOM元素-表单输入 [ 86%]

...ge.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#FFFFFF"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; var rowHeightD...

来源: Laya_示例 发布时间: 20251130

34. Graphic.drawTextures,第二个参数 pos:Array — 绘制次数和坐标,怎么写啊, [ 86%]

...系列曲线。 怎样获取浏览器地址传过来的GET参数 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 3D模型的原点不在模型的中心上,这种情况该如何获取一个3D模型的中心点坐标? 对象池对类怎么传参数 问题状态 最新活动: 201...

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

35. [LayaAirIDE3]2d相机打包后问题 [ 86%]

...ass() export class Main extends Laya.Script {     @property({ type: Laya.Sprite })     public player: Laya.Sprite;      @property({ type: Laya.Sprite })     public joystick: Laya.Sprite;      @property({ type: Laya.Sprite })     public map: Laya.Sprite;      @property({ type: Laya.S...

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

36. 2D物理-仿生机器人 [ 86%]

...s.Construct(); this.eventListener(); } Construct() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponentIntance(rigidbody); let chainCollider = ground.addComponent(Laya.ChainCollider); chainCollider.po...

来源: Laya2.0_示例 发布时间: 20251130

37. DOM元素-表单输入 [ 85%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightD...

来源: Laya2.0_示例 发布时间: 20251130

38. Sprite-显示图片 [ 85%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser...

来源: Laya_示例 发布时间: 20251130

39. 输入设备-指南针 [ 85%]

...nge); } // 方位指示器指向当前所朝方位 createCompass() { const Sprite = Laya.Sprite; compassImg = new Sprite(); Laya.stage.addChild(compassImg); compassImg.loadImage(compassImgPath); compassImg.pivot(compassImg.width / 2, compassImg.height / 2); compassImg.pos(Laya.stage.width / 2, 400);...

来源: Laya2.0_示例 发布时间: 20251130

40. 输入设备-指南针 [ 85%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Gyroscope = Laya.Gyroscope; var RotationInfo = Laya.RotationInfo; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Event...

来源: Laya_示例 发布时间: 20251130