大约有 19 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...,如果不同图集交叉渲染,会增加DrawCall数量。 尽量保证同一个面板中的所有资源用一个图集,这样能减少提交批次。 2.3 优化Canvas 在对Canvas优化时,我们需要注意,在以下场合不要使用cacheAs: 对象非常简单,比如一个字或者...
来源: Laya3.0_文档 发布时间: 20251010
...图集 而图集的位置是在res下面 也就是说和player文件夹是同一个目录 因为player文件夹里面的小图都打包成一张大图了 laya打包之后的图片纹理 是通过源目录的路径来存储在LoaderManager缓存中的 因此 我们只要用原来单个图片的路径...
来源: Laya_社区 发布时间: 20160801
...nt._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited fro...
来源: Laya3.0_api 发布时间: 20231115
...效果了。 ##### 第二,导出后,要把png的名字与fnt修改为同一个名字 由于该位图字体制作工具,一个fnt的其实是可以对应多张png图的,所以命名上,位图会以`xxx_0\1\2...`这样的格式命名,但引擎目前不支持多图,所以文字多的,...
来源: Laya2.0_文档 发布时间: 20210715
...nt._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited fro...
来源: Laya3.0_api 发布时间: 20231115
...法修改为//加载完毕 function onLoaded(){ console.log("onLoaded"); //实例化RunGame var runGame = new RunGame(); //添加到舞台 Laya.stage.addChild(runGame); } 因为RunGame.js是一个新的JS文件 我们的页面没有引用 如果这个时候刷新页面会报错 所以我们有两种...
来源: Laya_社区 发布时间: 20160722
...法和帧标签事件相关功能。 可以继承此类,但不要直接实例化此类,因为有些方法需要由子类实现。 Hierarchy Sprite AnimationBase FrameAnimation Animation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior l...
来源: Laya3.0_api 发布时间: 20231115
...nt._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 cullingMode cullingMode: number = Animator.CULLINGMODE_CULLCOMPLETELY Defined in laya/d3/component/Animator.ts:95 裁剪模式 owner owner: Node Inherited from Component.own...
来源: Laya3.0_api 发布时间: 20231102
...nt._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 cullingMode cullingMode: number = Animator.CULLINGMODE_CULLCOMPLETELY Defined in laya/d3/component/Animator/Animator.ts:78 裁剪模式 owner owner: Node Inherited from Comp...
来源: Laya3.0_api 发布时间: 20231115