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

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

1061. 射线检测-碰撞器混合 [ 27%]

...(0.1, 0, 0); private collider:Laya.Sprite3D; private debug:Boolean = true; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //预加载所有资源 var resource:any = [ {url: "../../res/threeDimen...

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

1062. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...eInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(norma...

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

1063. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: any, contact: any): v...

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

1064. 射线检测-点击行走 [ 27%]

...Laya.MeshSprite3D; private camera: Laya.Camera; private label: Laya.Label; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

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

1065. laya.d3.core.BaseCamera [ 26%]

... public var useOcclusionCulling:Boolean 渲染时是否用遮挡剔除。 Constructor DetailBaseCamera()Constructorpublic function BaseCamera(nearPlane:Number = 0.3, farPlane:Number = 1000) 创建一个 BaseCamera 实例。 Parameters nearPlane:Number (default = 0.3) — 视野。  farPlane:Number...

来源: Laya2.0_api 发布时间: 20190513

1066. 预制体模块 · LayaAir3文档 · LAYABOX [ 26%]

...er : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下...

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

1067. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...er : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下...

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

1068. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 26%]

.../ module subpackage{ export class b{ private GameMain:any; private ui:any; constructor(){ //监听按钮btnA的点击事件,触发后处理 this.GameMain.newUI.btnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { this.GameMain.showUI(this.ui.bUI,this.GameMain.newUI) /...

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

1069. 求ShuriKenParticle3D用法 [ 26%]

...rst;     export class JinBi extends ShuriKenParticle3D {         constructor() {             let material = ShurikenParticleMaterial.load("resources/Assets/ArtResources/Effects/Materials/Effect_yu_jinbi_xulie.lmat");             super(material);            ...

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

1070. laya.d3.math.Matrix4x4 [ 26%]

...ty Detailelementspropertypublic var elements:Float32Array矩阵元素数组Constructor DetailMatrix4x4()Constructorpublic function Matrix4x4(m11:Number = 1, m12:Number = 0, m13:Number = 0, m14:Number = 0, m21:Number = 0, m22:Number = 1, m23:Number = 0, m24:Number = 0, m31:Number = 0, m32:Number = 0,...

来源: laya_api 发布时间: 20170929