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

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

461. Laya2.0 动画Animator如何监听播放完成 [ 55%]

...rStateScript   import AnimationDefine from "../AnimationDefine";  export default class AttackState extends Laya.AnimatorStateScript {  animator:Laya.Animator;  onStateEnter(): void {  }  onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } }  onSt...

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

462. 今天升级到2.0,有个问题搞懵逼了。求解 [ 55%]

...里我还的Import 20+次? 而且被导入文档 首行必须有 export default class******* 这升级后 怎么写起来更麻烦了?还是说我没找到简便方式?? 求解 图1: 图2   问题二: 例如1.9我可以这样使用带命名空间的文档,,但是由于2.0需要Impo...

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

463. HtmlDivElement宽度设置错误 [ 55%]

...idth,但是实际显示是以文本宽度来显示的 示例代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTM...

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

464. laya.utils.Dragging [ 55%]

...disableMouseEvent:Boolean — 鼠标事件是否有效。  ratio:Number (default = 0.92) — 惯性阻尼系数 stop()method  public function stop():void 停止拖拽。 Sat Apr 22 2017, 10:26 AM +08:00

来源: laya_api 发布时间: 20170422

465. laya.net.URL [ 55%]

...的地址并 返回。 Parameters url:String — 地址。  base:String (default = null) — 路径。 ReturnsString — 格式化处理后的地址。 getFileName()method  public static function getFileName(url:String):String 获取指定 URL 的文件名。 Parameters url:String — 地址。 Re...

来源: laya_api 发布时间: 20170929

466. layaair 2.0 在构造函数中获取基类的组件,报错说未定义。 [ 55%]

...2.0 在构造函数中获取基类的组件,报错说未定义。 export default class GameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错...

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

467. laya.ui.Clip [ 55%]

...1, clipY:int = 1) 创建一个新的 Clip 示例。 Parameters url:String (default = null) — 资源类库名或者地址  clipX:int (default = 1) — x方向分割个数  clipY:int (default = 1) — y方向分割个数 Method Detail_skinLoaded()method protected function _skinLoaded():voidcreateC...

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

468. laya.d3.core.scene.Scene [ 55%]

...destroyChild:Boolean = true):void private Parameters destroyChild:Boolean (default = true)getlightmaps()method  public function getlightmaps():Vector.<Texture2D> 获取光照贴图。 ReturnsVector.<Texture2D> — 获取光照贴图。 getRenderQueue()method  public function getRenderQ...

来源: laya_api 发布时间: 20170929

469. 如何让鼠标指针显示成小手 [ 55%]

... 浏览: 1937 关注: 6 人 185*****207 • 2018-07-18 11:41 Mouse.cursor='default' 157*****121 • 2017-09-11 08:53 导错包了 seven_007 • 2017-09-11 10:29 @157*****121:那是导哪个包呢 157*****121 • 2017-09-11 10:32 laya.utils.Mouse; 李友涛 • 2020-01-06 10:12 您好,laya.utils.Mo...

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

470. laya.d3.core.MeshTerrainSprite3D [ 55%]

...h:Mesh — 网格。  heightMap:HeightMap — 高度图。  name:String (default = null) — 名字。 Method DetailcreateFromMesh()method public static function createFromMesh(mesh:Mesh, heightMapWidth:Number, heightMapHeight:Number, name:String = null):MeshTerrainSprite3D 从网格创建一个Te...

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