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

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

1121. 内存释放问题 [ 46%]

...释放问题 export class ResUIModuleManager { /** * 模块资源路径 */ private static moduleResPath: string = 'res/atlas/{0}.json'; /** * 模块的资源名称和模块的主面板(模块的主面板类全名,模块资源图集名称[]) * @type {Laya.Dictionary} * @memberof ResourcesModule...

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

1122. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 46%]

...发现就不会有类似问题。class GameLayer extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.ro...

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

1123. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 46%]

...sing UnityEngine; public class TestMove : MonoBehaviour { [SerializeField] private Transform pivot; [SerializeField] private Transform guard; // Use this for initialization void Start () { pivot.transform.rotation = Quaternion.Euler(0, 0, -20); } // Update is called once per frame void Update () { i...

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

1124. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 46%]

...个视频都不显示了。     下面是 创建视频的主要代码 private function initVideo():void { // TODO Auto Generated method stub // 创建Video元素 var div:* = Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* =...

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

1125. 渲染优化原则(TypeScript-2D进阶篇(TS)-性能优化) [ 46%]

...(根据电脑性能而定,本例为10000): ```typescript class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i (图1) 当我们对文字所在的容器设置为cacheAs之后,如下面的例子所...

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

1126. laya.ui.Label_API3.0 [ 46%]

...aya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var label:Label = new Label();//创建一个 Label 类的实例对象 label 。 label.font = "Arial";//设置 label 的字体。 label.bold = true;//设置 label 显示为粗体。 label.leadi...

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

1127. 小游戏项目 加载有中文的json文件 报错 [ 46%]

....load(url, Handler.create(null, onJsonLoaded,[url]), null, Loader.JSON); } private static function onJsonLoaded(url:String,data:Object):void { var arr:Array = data.Sheet1; Laya.loader.clearRes(url); } 微信开发者工具中报错 Unexpected token in JSON at position 34;at api readFile success call...

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

1128. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 46%]

...) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.contentLoaderInfo.addEventListener(Event.COMPLETE,onSwfLoad...

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

1129. laya.ui.Image_API3.0 [ 46%]

...aya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//设置 bg 对象的属性 x 的值,用于控制 bg 对象的...

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

1130. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 46%]

...ya的Button渲染逻辑顺序是先渲染,再获取素材切片? /** *@private *改变对象的状态。 */ __proto.changeState=function(){ this._stateChanged=false; this.runCallLater(this.changeClips); var index=this._state < this._stateNum ? this._state :this._stateNum-1; this._sources &amp...

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