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

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

131. laya.ui.Label_API3.0 [ 84%]

...一个 Label 实例。 package { import laya.ui.Label; public class Label_Example { public function Label_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var labe...

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

132. laya.ui.FontClip_API3.0 [ 84%]

...6"文字 Hierarchy Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode botto...

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

133. laya.ui.Button_API3.0 [ 84%]

...age { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,on...

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

134. laya.ui.Tree_API3.0 [ 84%]

...ee; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll...

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

135. setSubPixels画布擦除不掉 [ 84%]

... let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width; // let h = c...

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

136. laya.map.MapLayer_API3.0 [ 84%]

...or ... Hierarchy Sprite MapLayer Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior layerName mouseThrough name tag tarLayer drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs com...

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

137. 关于射线碰撞的问题,对于射线的罗辑方式不太了解,懂得进来帮忙看一下!~~~~~~~~~~ [ 84%]

...碰撞信息 rayCastHit2 =new RaycastHit();   //针循环 public function _update():void {     //刷新人物位置,_position是缓动函数实时更新的坐标     roleModel.transform.position = _position;     //设置射线原点     ray2.origin=new Vector3(roleModel.transform.positio...

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

138. viewport 的用法 [ 84%]

... Rectangle = Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;       var ccc = new S...

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

139. [LayaAirIDE 3.0][3.0.7]Sprite的MouseEnable属性无效 [ 84%]

...今天3.0.8的发版日志 2023-11-22 0 2 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 白猫 、无名玩家X 您好,此问题已复现,这个功能对应到Sprite中的_mouseState参数,在_mouseState为0时是AUTO方式,我们会将增加监听的对象,在监听对象的_mouseSta...

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

140. dialog里面的内容怎么不能添加到舞台 [ 84%]

... for (var X = 0; X < res.data.length; X++) { var foodid = res.data[X]['n_food_id']; var foodtxt = res.data[X]['n_number']; fooddata[X] = { food: { skin: 'comp/food' + foodid + '.png' }, food_txt: {text: foodtxt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console...

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