大约有 1,162 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(657) Laya_示例(157) Laya2.0_文档(129) Laya2.0_示例(116) Laya3.0_api(72) Laya3.0_文档(11) laya_api(11) Laya2.0_api(9)
...:Text; /****水平滚动条****/ private var hScrollBar:HScrollBar; public function UI_ScrollBar() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CEN...
来源: Laya2.0_文档 发布时间: 20210714
...scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61...
来源: Laya2.0_文档 发布时间: 20210715
...scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61...
来源: Laya2.0_文档 发布时间: 20210715
... 比如 this.loadNum=0; //资源加载进度中函数 _proto_.onProgress = function(){ //显示加载进度 Laya.timer.loop(100,this,this.ontime); this.txt_load.text = "资源加载中,当前进度:" + parseInt(this.loadNum) + "%"; //this.onComplete(); } //时钟定时执行函数 _proto_.ontime...
来源: Laya_社区 发布时间: 20171209
...te var xflag:Boolean; private var v:uint=2; private var d:uint=150; public function CurveDemo() { Laya.init(800,400); ball=new Sprite(); ball.graphics.drawCircle(0,0,50,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():v...
来源: Laya_社区 发布时间: 20160424
...ntIndex:int; /***控制器按钮***/ private var controller:Button; public function UI_Clip() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); //画布垂直居中对齐 Laya.stage.alignV = Stage.ALIGN_MIDDLE; //画布水平居中对齐 Laya.stage.alignH = Stage.ALIGN_CENTER; ...
来源: Laya2.0_文档 发布时间: 20210714
...** @author Charley */ public class HelloLayabox { public function HelloLayabox() { //创建舞台,默认背景色是黑色的 Laya.init(600, 300); var txt:Text = new Text(); //设置文本内容 txt.text = "Hello Layabox"; ...
来源: Laya2.0_文档 发布时间: 20210715
... X3005: '_webgl_42c649225184485b': identifier represents a variable, not a function Warning: D3D shader compilation failed with default flags. (ps_5_0) Retrying with skip validation C:\fakepath(596,34-81): error X3005: '_webgl_42c649225184485b': identifier represents a variable, not a function War...
来源: Laya_社区 发布时间: 20200226
... 0, 0)); var point = new Laya.Vector2(); var _outHitAllInfo = new Array(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.viewportPointToRay(point, ray); //射线检测获取所...
来源: Laya_示例 发布时间: 20261113
...跟踪代码,发现laya.ui.js里代码如下: View.getCompInstance=function(json){ var runtime=json.props ? json.props.runtime :""; var compClass=runtime ? (View.viewClassMap[runtime] || Laya["__classmap"][runtime]):View.uiClassMap[json.type]; return compClass ? new c...
来源: Laya_社区 发布时间: 20160913