大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya3.0_api(292) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27) Laya_社区(8) Laya2.0_文档(2) Laya2.0_示例(1) Laya_示例(1)
... 用于实现3D场景。 Hierarchy Sprite Scene3D Implements ISubmit Index Constructors constructor Properties _ShadowMapupdateFrequency _extra _ownGraphics _reflectionsIblSamples _reflectionsResolution _reflectionsSource _scene _sceneUniformData _skinBaseUrl _sundir _url autoSize currentCreationLay...
来源: Laya3.0_api 发布时间: 20231115
...eInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } constructor() { super(); } /** * 动画状态开始时执行。 */ onStateEnter(): void { console.log("动画开始播放了"); } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(norma...
来源: Laya3.0_文档 发布时间: 20251010
...ort class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(open...
来源: Laya3.0_文档 发布时间: 20251010
...: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new...
来源: Laya3.0_文档 发布时间: 20251010
...te reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){console.log("----")}; console.info = console.log; console.warn = console.log; console.error = console.log; } this._message = new Me...
来源: Laya_社区 发布时间: 20180119
...收机制 */ @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_文档 发布时间: 20251010
...export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动画,看看运行结果: (图9-4) Copyright ©...
来源: Laya3.0_文档 发布时间: 20251118
...如果继续播发,则会改变播放顺序)。 默认为正序播放。 Constructor DetailAnimationPlayerBase()Constructorpublic function AnimationPlayerBase() 可以继承此类,但不要直接实例化此类,因为有些方法需要由子类实现。 Method DetailaddLabel()method public fun...
来源: laya_api 发布时间: 20170929
...。treeSizeproperty public var treeSize:Vector3 四/八叉树的尺寸。Constructor DetailBaseScene()Constructorpublic function BaseScene() 创建一个 BaseScene 实例。 Method Detail_renderDebug()method protected function _renderDebug(gl:WebGLContext, state:RenderState):void Parameters gl:WebG...
来源: laya_api 发布时间: 20170422
...athLength: number; private startPoint: Vector2; private endPoint: Vector2; constructor() { //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //显示性能面板 Stat.show(); this.path = []; this.startPoint = new Vector2(); this....
来源: Laya3.0_文档 发布时间: 20230303