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

大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)

2111. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 52%]

...理引擎文档都是IDE篇的。   我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_clos...

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

2112. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 52%]

...里是随便取的名。 ```typescript import laya.d3.component.Script3D; class SceneScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public fun...

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

2113. Uncaught RangeError:Array buffer allocation failed [ 52%]

...or: Cannot read property 'cursor' of undefined错误 Uncaught Can not find class Laya.Text 【求助大神】在目标scene中添加2d的多边形刚体后,跳转该页面启动时报Uncaught Error at Object.box2d.b2Assert (laya.physics.js:38) 问题状态 最新活动: 2019-09-06 09:07 浏览: 34...

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

2114. textinput移除后再添加会将之前的内容全部赋值给全部input [ 52%]

...回复 陆仁毅 赞同来自: 为世界献上奇迹 在core.js包里的,class Input .... 他的 _focusOut方法 加上这行话 2019-10-28 1 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 没有复现 2019-10-22 0 1 分享 微博 QZONE 微信 为世界献上奇迹 赞同来自:   2019-10-...

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

2115. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 52%]

...pescript //继承自AnimatorStateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始...

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

2116. 怎么打开第二个工程 [ 52%]

...e.media.Video; import laya.events.Event; import laya.utils.Browser; public class Main { public function Main() { Laya.init(500,500); Laya.stage.once(Event.CLICK,this,this.clickHandler); } private function clickHandler():void { var iframe:Object = Browser.document.createElement("iframe"); iframe.styl...

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

2117. FontChip不能显示 [ 52%]

... * fontClip.value = "a1326";//显示"a1326"文字      */     public class FontClip extends Clip {         /**数值*/         protected var _valueArr:String;         /**文字内容数组**/         protected var _indexMap:Object;         /**位图字体内容**/...

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

2118. IDE2.4+ vscode调试教程 [ 52%]

...据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" 问题状态 最新活动: 2019-12-05 12:51 浏览: 2515 关注: 6 人 A • 2019-12-25 18:19 调试需要生成maps https://ldc2.layabox.com/doc/% ... 3-0-7 A • 2019-12-25 18:21 不过现在laya官方已经出了vs...

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

2119. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 52%]

... { List } from "laya/ui/List"; import { Laya } from "laya"; export default class test_move extends Image{ // /** @prop {name:move_img, tips:"用来移动的箭头", type:Image} */ // public _move_img: Image; // public _list: List; //创建一个 List 类的实例对象 list 。 private n:number = 0;...

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

2120. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 52%]

...er.JUMP = "player_jump"; //状态 Player.DIE = "player_die"; //Player Laya.class(Player,"Player", laya.display.Sprite); var _proto = Player.prototype; //是否缓存了 Player.cached = false; _proto.init = function(){ //动画缓存起来 if(!Player.cached){ Player.cached = true; //根据不同的...

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