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

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

231. 动画实例在调用含有名字参数的时候获取不到边界 [ 42%]

...H= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new Laya.Animation()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./...

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

232. Box2D使用Destory join报错? [ 41%]

...做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使用 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 预设怎么在代码中使用 求高人分享使用protobuff框...

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

233. laya.d3.physics.CharacterController [ 41%]

...spublic class CharacterControllerInheritanceCharacterController PhysicsComponent Component Object CharacterController 类用于创建角色控制器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By canCollideWith : int 获取可碰撞的碰...

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

234. laya.d3.core.Camera_API3.0 [ 41%]

...ectRatio boundFrustum canblitDepth clearColor clientHeight clientWidth components cullingMask depthTextureFormat depthTextureMode destroyed displayedInStage enableBlitDepth enableBuiltInRenderTexture enableHDR farPlane fieldOfView fxaa hideFlags id is3D layer maxlocalYDistance msaa nearPlane normali...

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

235. laya.d3.webxr.core.WebXRCamera_API3.0 [ 40%]

...ive activeInHierarchy aspectRatio boundFrustum canblitDepth clearColor components cullingMask depthTextureFormat depthTextureMode destroyed displayedInStage enableBlitDepth enableBuiltInRenderTexture enableHDR farPlane fieldOfView fxaa hideFlags id is3D layer maxlocalYDistance msaa nearPlane normali...

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

236. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 40%]

...lass() export class Main extends Laya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledM...

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

237. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 37%]

...所有节点和组件均已创建完毕,此方法只会执行一次 | | onEnable | 组件被启用后执行,比如,节点被添加到舞台后执行 | | onStart | 在第1次执行update之前执行,只会执行一次, | | onUpdate | 每帧更新时执行,尽量不要在这里写大循环...

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

238. 程序蓝图 · LayaAir3.0文档 · LAYABOX [ 35%]

...类型的输出引脚。 如图2-7给出的示例,当蓝图节点触发onEnable生命周期时,开始打印”game start“,然后等待2秒 (这里的add就是参数节点,将1+1的结果输入给waitTime),再顺序执行打印“3”,2秒过后打印“4”。 (图2-7) 2.2 蓝...

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

239. laya.ui.ScaleBox [ 34%]

...nts Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Public Properties Hide Inherited Public Properties Show...

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

240. laya.d3.core.light.DirectionLight [ 33%]

...置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 ...

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