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

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

921. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 54%]

...import laya.maths.Size;     import laya.ui.Image;          public class ProcessTimer extends Sprite     {         public var img:Image;         public var maskSp:Sprite;         public var percent:Number;         public var type:String = "PROGRESS_TIMER_TYPE_RADIA...

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

922. laya的ide如何import js并调用里面的类和方法?VS Code正常。 [ 54%]

...ports, "__esModule", { value: true }); const t = require("./test/TestExportClass"); // 程序入口 class GameMain { constructor() { // Laya.init(600,400); console.log("start"); var exportCls = new t.TestExportCls(); exportCls.callFunc(); } } new GameMain(); } http://requirejs.org/docs/errors.html#m...

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

923. 进入后台后的网络问题 [ 54%]

...入前台,这个有事件或者回调吗? 看了安卓的,LayaConch5.class file:///C:\Users\Administrator.DESKTOP-AM0RTMG\AppData\Roaming\Tencent\Users\315617576\QQ\WinTemp\RichOle\`I{H_$7(]}RY}87O[N@@{VW.png 在js、as代码里如何侦听到? 2017-06-21 0 0 分享 微博 QZONE 微信 Monic...

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

924. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 54%]

...述](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.net.LoaderManager) 。 ```typescript ...... //批量预加载方式 public function PreloadingRes() { //预加载所有资源 var resource:Array = ["res/threeDimen/scene/TerrainScene/XunLongShi.ls", "res/threeDimen...

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

925. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 54%]

...:48 浏览: 1266 关注: 5 人 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat =...

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

926. laya.ui.CheckBox_API3.0 [ 54%]

...Inherited Externals Only exported Menu Globals "laya/ui/CheckBox" CheckBox Class CheckBox CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标签,默认该标签位于 CheckBox 右侧。 CheckBox 使用 dataSource赋值时的...

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

927. LayaFlash如何使用chrome调试问题? [ 53%]

... package { import flash.display.Sprite; import flash.events.Event; public class Main extends Sprite { public function Main() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFl...

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

928. laya.ui.UIComponent [ 53%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames UIComponentProperties | Methods | Events Packagelaya.uiClasspublic class UIComponentInheritanceUIComponent Sprite Node EventDispatcher ObjectSubclasses Box, Button, Clip, ColorPicker, ComboBox, Image, Label, ProgressBar...

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

929. [LayaAirIDE3]getTextWidth报null is not an object (evaluating \'i.width\') [ 53%]

...ll 请问object层中添加的sprite怎么添加点击事件 Warning!,this class[MiniAdpter] already exist: Object {init: } Cannot read property 'displayObject' of null Getcomponent 报错Uncaught (in promise) TypeError: Right-hand side of 'instanceof' is not an object alertexception info: [Typeerro...

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

930. 我用as3调试的matter.js,刚体发生碰撞后不会旋转,我的代码在附件里 [ 53%]

...i;     /**      * ...      * @author zzz      */     public class WWJ_Main      {         private const stageWidth:int = 540;         private const stageHeight:int = 960;                  private var Matter:Object = Browser.window.Matter;         priv...

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