大约有 3,975 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(49)
...fo setFont(value:String):voidFontInfoProperty Detail_boldpropertypublic var _bold:Boolean = false_familyproperty public var _family:String = Arial_fontproperty public var _font:String = 14px Arial_idproperty public var _id:uint_italicproperty public var _italic:Boolean = false_sizeproperty p...
来源: Laya2.0_api 发布时间: 20190513
...取原生的pixels没有进行改动。怎么回事呢? 代码如下: var url = "res/textures/marry_frame_005.png"; url= Laya.URL.formatURL(url); var imageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource....
来源: Laya_社区 发布时间: 20190923
...useManager 单例引用。 MouseManagerProperty Detail_eventpropertypublic var _event:EventdisableMouseEventproperty public var disableMouseEvent:Boolean = false 是否禁用除 stage 以外的鼠标事件检测。enabledproperty public static var enabled:Boolean = true是否开启鼠标检测,...
来源: laya_api 发布时间: 20170929
...纹理数组。PostProcessRenderContextProperty Detailcamerapropertypublic var camera:Camera = null 渲染相机。commandproperty public var command:CommandBuffer = null 后期处理指令流。compositeDefineDataproperty public var compositeDefineData:DefineDatas = null 合成着色器宏定义...
来源: Laya2.0_api 发布时间: 20190513
...载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.colo...
来源: Laya2.0_文档 发布时间: 20210715
...source():voidTerrainFilterProperty Detail_boundingBoxCornerspropertypublic var _boundingBoxCorners:Vector.<Vector3>_bufferStateproperty protected var _bufferState:BufferState_currentNumberIndicesproperty protected var _currentNumberIndices:int_gridSizeproperty public var _gridSize:Number_in...
来源: Laya2.0_api 发布时间: 20190513
...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var logger; (function() { // 不支持WebGL时自动切换至Canvas Laya.init...
来源: Laya_示例 发布时间: 20241124
...个 RenderState 实例。 RenderStateProperty Detailcamerapropertypublic var camera:BaseCamera当前摄像机。clientHeightproperty public static var clientHeight:int渲染区高度。clientWidthproperty public static var clientWidth:int渲染区宽度。elapsedTimeproperty public var elapsedTim...
来源: laya_api 发布时间: 20170929
...ndler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片资源 var tex = Laya.loader.getRes("../src/img/testImg.png"); //获取临时sprite的htmlCanvas var h...
来源: Laya_社区 发布时间: 20180413
...#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; var gap = 10; //创建一个Sprite充当音效播放按钮 let soundButton = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundB...
来源: Laya2.0_示例 发布时间: 20241124