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

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

51. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 68%]

...rotation旋转之后检测不了碰撞   附上代码  class FishPonds extends Laya.Sprite { public are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.h...

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

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

...是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_close.png'); let box:l...

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

53. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 68%]

...t { ui } from '../ui/layaMaxUI'; /**主界面 */ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private on...

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

54. 求助高手请进,关于场景导入的问题~ [ 68%]

... = new GameScene(); Laya.stage.addChild(scene1);   public class GameScene extends Scene {    public function GameScene()    {       Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler));    }          private function completeHandler():void{     ...

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

55. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 68%]

...ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(...

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

56. 2.4.0bate在放大缩小时文本会不同程度的模糊 [ 68%]

...一下内容:   在LayaAir.d.ts 中缺少    class AnimationState extends laya.ani.AnimationState {}    class AnimationState {         static stopped: number;         static paused: number;         static playing: number;         constructor();   ...

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

57. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 68%]

...on等控件? export module ui {     export class GameSceneuiUI extends Laya.Scene {         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart...

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

58. 解析sk资源报错 [ 68%]

...t;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();             initView();         }           ...

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

59. 动画状态脚本(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 67%]

...自AnimatorStateScript(动画状态脚本) class AnimatorStateScriptTest extends AnimatorStateScript { private var _text:Text = null; public function get text():Text { return _text; } public function set text(value:Text):int { _text = value; } public function AnimatorStateScriptTest() { } /** * 动...

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

60. UI-List [ 67%]

...+ index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: s...

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