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

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

31. 关于设置了Laya.stage.pos后input的问题求解答 [ 87%]

...穿透 关于适配采用showAll后留白部分的颜色问题 如何设置Sprite的宽高和点击区域? 救命!canvas定位后 点击区域偏移,求大大们解答 关于shader中opengl函数问题 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 Laya3D里的ma...

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

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

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

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

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

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

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

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

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

...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物理-仿生机器人 [ 85%]

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