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

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

151. PBR标准材质实时阴影渲染问题 [ 59%]

...om "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camer...

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

152. shader 问题[关闭] [ 59%]

..., 1.0);       v_color = color;v_texcoord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CON...

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

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

...独立小模块,功能单一,建议用脚本方 */ public class GameUI extends TestSceneUI { public function GameUI():void { super(); //加载场景 Scene3D.load('LayaScene_test/Conventional/test.ls',Handler.create(this,onComplete)) } /** * 加载完成 */ private function onComplete(scene:Scene...

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

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

...理根节点去做相机跟踪 代码如下: 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,570);     onEnable(): voi...

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

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

...emplet; 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/spineboy-pma.skel"...

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

156. 2d帧动画bug:编译运行会掉帧,编辑器不会掉帧,2.2.0版本以上都有这个问题 [ 58%]

...meAnimation._sortIndexFun == null)   代码如下: class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun == null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }      2019-11-19 0 2 分享 微博 QZONE 微信 为...

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

157. 缓动-缓动函数演示 [ 58%]

...; input.inputElementYAdjuster = 1; return input } } } class ListItemRender extends Box { private label: Label; constructor() { super(); this.size(100, 20); this.label = new Label(); this.label.fontSize = 12; this.label.color = "#FFFFFF"; this.addChild(this.label); } public setLabel(value: string): v...

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

158. Laya List给子元素添加事件后,滚动事件被劫持了 [ 58%]

...toreTxList);     悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); }  } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

159. List属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 58%]

...+ index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: s...

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

160. 动画混合问题,Avatar动画混合报错. [ 58%]

.../被扔 dizziness = 'dizziness',//眩晕 }  export default class RoleBase extends Laya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5;  public sprite:Laya.Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animato...

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