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

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

751. 粒子中引用的图片能合图吗 [ 62%]

...s/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void {     Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) {     let part = new Laya.Particle2D(data);     part.emitter.start();...

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

752. laya.d3.renderobjs.nativeobj.NativeInstanceRenderElementOBJ_API3.0 [ 62%]

...ss with type parameter Constructor Method Accessor Object literal Variable Function Type alias Inherited property Inherited method Inherited accessor Enumeration Interface

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

753. textInput的单行输入&多行输入(JavaScript-LayaAir基础篇(JS)-文本) [ 62%]

....stage.bgColor = "#efefef"; Text_InputSingleline(); Text_InputMultiline(); function Text_InputSingleline(){ var textInput = new Laya.TextInput("单行输入");//创建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fon...

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

754. JSONP跨域读取数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 62%]

... ```javascript var http = require("http"); var sever = http.createServer(function(req,res){ res.end("LayaSample.onComplete()"); }); sever.listen(9090) ``` ```javascript res.end("LayaSample.onComplete()"); ``` 这句话的意思是服务器回传给客户端LayaSample.onComplete()并且执行这个...

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

755. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 62%]

...JS语言开发却可以加载 按照 技术文档里的事例: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr....

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

756. 微信开发工具编译报错 [ 62%]

...nts' of undefined TypeError: Cannot read property 'events' of undefined at Function.EventDispatcher.__init$ (http://127.0.0.1:35024/game/code.js:634:29) at http://127.0.0.1:35024/game/code.js:14:71 at Array.forEach (<anonymous>) at Object.__init (http://127.0.0.1:35024/game/code.js:14:36) at h...

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

757. 手机全屏游戏,屏幕右侧会有一个像素的空白 [ 62%]

...ipt" src="laya.webgl.js"></script> <script> window.onload = function (){ document.documentElement.style.overflow='hidden';   Laya.init(1280,720,Laya.WebGL);  Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizo...

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

758. 加载图片显示为黑屏(附代码),为什么? [ 62%]

...utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.size(460, 704); rule_ct = new Sprite(); Laya.stage.addChild(rule_ct...

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

759. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 62%]

...码:** ```javascript // 这段代码需要在setupDemo之前执行。 (function() { // 项渲染器 var Box = Laya.Box; var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = fu...

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

760. 类似抠图、挖空效果的实现 [ 62%]

...         private var box:Sprite;                  public function LayaAirDemo() {             Laya.init(1200, 800);             Laya.stage.bgColor = "#efefef";             Laya.stage.alignH = Stage.ALIGN_CENTER;             Laya.stage.alignV = St...

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