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

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

1131. 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

1132. 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

1133. 为什么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

1134. 将字节数组转为图片 [ 46%]

...oad(url, Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void {             var buffer:ArrayBuffer = Laya.loader.getRes(url);             var byte:Byte = new Byte(buffer);             byte.writeArrayBuffer(buf...

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

1135. laya.ui.TextInput_API3.0 [ 46%]

.../ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例。");//创建一个 TextInput 类的实例对象 textInput 。 textInput.skin = "resource/ui/input.png";//设置 te...

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

1136. 模拟石头下落过程不明抖动 [ 45%]

...} from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeight, Laya.WebGL ); ...

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

1137. 3D粒子特效初始化卡顿 [ 45%]

...f(item != null){ item = item.getChildAt(0).clone(); Instantiate(item); } } private function Instantiate(item:Sprite3D):void { effect3D = item; //effect3D.active = true; this.addChild(effect3D); //console.hylog("_path:",_path); SetUVEffect(effect3D); }

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

1138. laya.ui.TextArea_API3.0 [ 45%]

.../ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。");//创建一个 TextArea 类的实例对象 textArea 。 textArea.skin = "resource/ui/input.png";//设置 textArea ...

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

1139. 关于graphics.drawPath手机端和PC端不一致的问题 [ 45%]

... = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya....

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

1140. 启动画面LoadingView · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

...显示在loadingView界面上的Tips,在RuntimeProxy.java文件中修改private int[] mTips的值,即可决定哪个Tips会出现在界面上。 2.进度条控制实例 在实际开发过程中,通常想要精确控制LoadingView的隐藏和显示,那么开发者可以在config.js中设置lo...

来源: Laya3.0_文档 发布时间: 20251010