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

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

231. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 77%]

...() { function Hero(type, hp) { Hero.__super.call(this); this.fly(); } Laya.class(Hero,"Hero", Air); var _proto = Hero.prototype; _proto.fly = function() { this.playAction("fly") } })(); air类: (function() { function Air(type, hp) { this.hp = hp; this.type = type; this.body = null; Air.__super.cal...

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

232. Laya 绑定显示内容到骨骼动画 [ 77%]

...加的内容:   1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.i...

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

233. laya.d3.animation.AnimationEvent_API3.0 [ 77%]

...ly exported Menu Globals "laya/d3/animation/AnimationEvent" AnimationEvent Class AnimationEvent AnimationEvent 类用于实现动画事件。 Hierarchy AnimationEvent Index Constructors constructor Properties eventName params time Constructors constructor new AnimationEvent(): AnimationEvent Defined...

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

234. 材质-BlinnPhong材质加载 [ 77%]

... this, function () { layaMonkey.transform.rotate(this.rotation, false); });class BlinnPhongMaterialLoad { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NON...

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

235. ios微信clone特效会导致特效的mesh无法显示 [ 77%]

...分的代码,ios和android小程序都能正常显示。 代码如下: class Particle { constructor() { Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene3D = Laya.stage.addChild( new Laya.Scene...

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

236. laya.html.HtmlParseOptions_API3.0 [ 77%]

...s Only exported Menu Globals "laya/html/HtmlParseOptions" HtmlParseOptions Class HtmlParseOptions Hierarchy HtmlParseOptions Index Constructors constructor Properties ignoreWhiteSpace linkColor linkUnderline defaultLinkColor defaultLinkUnderline Constructors constructor new HtmlParseOptions(): HtmlP...

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

237. 文本-字数限制 [ 77%]

...ya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_MaxChars { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya...

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

238. laya.d3.shader.ShaderPass_API3.0 [ 77%]

...xternals Only exported Menu Globals "laya/d3/shader/ShaderPass" ShaderPass Class ShaderPass ShaderPass 类用于实现ShaderPass。 Hierarchy ShaderCompileDefineBase ShaderPass Index Constructors constructor Properties statefirst Accessors renderState Constructors constructor new ShaderPass(owner: S...

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

239. 高级应用-Laya3D与网页混合 [ 77%]

....Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Laya3DCombineHtml { constructor() { var div = Laya.Browser.window.document.createElement("div"); div.innerHTML = "此内容来源于HTML网页, 可直接在html代码中书写 - h1标签"; document.body.appendChild(div)...

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

240. laya.d3.component.staticmesh.StaticMeshBatchManager_API3.0 [ 77%]

...aya/d3/component/staticmesh/StaticMeshBatchManager" StaticMeshBatchManager Class StaticMeshBatchManager Hierarchy StaticMeshBatchManager Index Constructors constructor Methods combine merge Constructors constructor new StaticMeshBatchManager(): StaticMeshBatchManager Defined in laya/d3/component/sta...

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