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

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

911. UI-TextArea [ 84%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var TextArea = Laya.TextArea; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var skin = "../../res/ui/textarea.png"; (function() { // 不支持WebGL时自...

来源: Laya_示例 发布时间: 20241002

912. 文本-自动换行 [ 84%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL...

来源: Laya_示例 发布时间: 20241002

913. 高级应用-渲染纹理 [ 84%]

...icModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, functio...

来源: Laya_示例 发布时间: 20241002

914. laya.resource.BaseTexture_API3.0 [ 84%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

915. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 84%]

截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen Offline.prototype.setSave=function(){ if( Laya.Browser.window.conch ) { var content=Laya.Browser.context; var width=800; var height=500; Laya.Browser.window.conch.captureScreen(function(content,...

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

916. 高级应用-基于物理渲染 [ 84%]

...n/scene/PBRScene/Demo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode...

来源: Laya_示例 发布时间: 20241002

917. UI-List [ 84%]

...laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { public function UI_List() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage...

来源: Laya2.0_示例 发布时间: 20241002

918. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 84%]

...组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.time...

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

919. socket 注册message出错 [ 84%]

...                 Browser._window.addEventListener('message',function(e){                                 ^ TypeError: Browser._window.addEventListener is not a function     at Function.Browser.__init__ (D:\workspace\LayaAir\6\bin\h5\LayaSample.max.js:...

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

920. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 84%]

...xture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) {             this.mat2.a...

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