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

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

681. Cannot read property 'rayCast' of undefined [ 44%]

Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...

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

682. 动画不显示 [ 44%]

...     case 7:name1 = "stand3";break;                     default:break;                 }                 Animation.createFrames(urls1,name1);             }             for (var dir:int = 0 ; dir < 8; dir ++)             {    ...

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

683. laya.d3.core.particleshuriken.ShurikenParticleSystem_API3.0 [ 44%]

.../ShurikenParticleSystem.ts:891 Parameters render: ShurikenParticleRenderer Default value meshTopology: MeshTopology = MeshTopology.Triangles Default value drawType: DrawType = DrawType.DrawElement Returns ShurikenParticleSystem Properties _geometryElementOBj _geometryElementOBj: IRenderGeometryEleme...

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

684. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 44%]

...rt Const from "../Const"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp:...

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

685. 分享:关于自定义场景继承的实现 [ 44%]

...自CustomScene。 MyScene.tsimport { ui } from "../ui/layaMaxUI"; export default class MyScene extends ui.CustomSceneUI{ constructor(){ super(); console.log(this.txt_hello.text); } } 设置CustomScene的runtime为刚刚创建的MyScene类,并创建一个var为txt_hello的文本,用来测试MySce...

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

686. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...,代码如下: const { regClass, property } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public ...

来源: Laya3.0_文档 发布时间: 20251010

687. 材质-物理基础渲染材质 [ 43%]

...ddChild(new Laya.Scene()); //var env:String = 'inthegarden'; var env = 'sp_default'; //var env = 'AtticRoom'; //var env = 'overcloud'; var envinfo = '../../res/threeDimen/env/' + env + '/envinfo.json'; Laya.loader.load(envinfo, Laya.Handler.create(this, onEnvDescLoaded, [envinfo, '../../res/threeDim...

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

688. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 43%]

...a.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSou...

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

689. laya.ui.View [ 43%]

...据实例化组件。 Parameters uiView:Object — UI数据。  comp:* (default = null) — 组件本体,如果为空,会新创建一个。  view:View (default = null) — 组件所在的视图实例,用来注册var全局变量,如果值为空则不注册。 Returns* — 一个 Component ...

来源: laya_api 发布时间: 20170929

690. laya.ui.DialogManager [ 43%]

...dialog:Dialog — 需要关闭的对象框 Dialog 实例。  type:String (default = null) — 关闭的类型,默认为空 closeAll()method  public function closeAll():void 关闭所有的对话框。 closeByGroup()method  public function closeByGroup(group:String):Array 根据组关闭所有...

来源: laya_api 发布时间: 20170929