大约有 1,102 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0068 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(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
...eInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(norma...
来源: Laya3.0_文档 发布时间: 20240910
...收机制 */ @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
...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
... 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
...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
...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
.../ 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
...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
...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