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

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

801. laya.maths.Rectangle_API3.0 [ 57%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/maths/Rectangle" Rectangle Class Rectangle Rectangle 对象是按其位置(由它左上角的点 (x, y) 确定)以及宽度和高度定义的区域。 Rectangle 类的 x、y、width 和 height ...

来源: Laya3.0_api 发布时间: 20231115

802. LayaAir3D Warning : MyWater must config in CustomShaderConfig File. [ 57%]

...ir3D 3D射击游戏 物体移动碰撞穿透问题 使用unity中layaair3D export tool时,没有显示按钮怎么办? LayaAir3D 3D射击游戏 物体移动碰撞穿透问题 Unity场景使用Laya导出插件导出,总是提示LayaAir3D UnityPlugin: unknown Shader Please use LayaAir3D shader ...

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

803. UI-Tree [ 57%]

...dler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_S...

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

804. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 57%]

...程默认生成给Base加了Laya.前缀。   layaMaxUI.ts代码如下   export gm {     export class GmPanelUI extends Laya.Base {         public bg:Laya.Sprite;         public input:Laya.TextInput;         public btnSend:Laya.Button;         public btnClose:Laya.Button;...

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

805. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 57%]

...们刚才预览的场景,当配置好输出场景设置后。 点击Laya Export 按钮,导出一个Scene3D与Sprite3D各一个,合并的一个文件夹目录结构如下(图1)。 ![](img/1.png)(图1) 见上图文件资源,导出后生成了.ls、.lm、.lmat数据资源,及贴图jpg、p...

来源: Laya2.0_文档 发布时间: 20210715

806. 鼠标交互-双指缩放(多点触控) [ 57%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Scale { //上次记录的两个触模点之间距离 private lastDistance: number = 0; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Brow...

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

807. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 57%]

...样 代码用到了更新物理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script {         strWorldRoot:Laya.Sprite;     constructor() { super(); }     cameraPlayerOffset:Laya.Point=new Laya.Point(18,0);     cameraOffset:Laya.Point=new Laya.Point(180...

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

808. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 57%]

...plet = Laya.SpineTemplet; const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private skeleton: SpineSkeleton; private index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game start"); Laya.loader.load("resources/res/...

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

809. drawToCanvas绘制显示不全 [ 57%]

...内容相关的链接 提交 3 个回复 之肖 赞同来自: 测试代码 export default class TestView extends TestViewUI {     constructor() {         super();     }     onAwake() {         this.nativeImg = new Image();         let style = this.nativeImg.style;         style...

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

810. layaAir3D插件对应的unity版本 [ 57%]

...oad type 'UnityEngine.ImageConversion' from assembly 'LayaAirLibrary'. LayaExport.DataManager.getSceneNode () LayaExport.DataManager.saveData () LayaExport.DataManager.getData () LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:435) LayaAir3D.OnGUI () (at Assets/...

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