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

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

711. HScrollBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 63%]

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

712. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 63%]

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

713. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 63%]

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

714. 为何定时时钟函数可以执行,但是得到的值却不会实时刷新 [ 63%]

... 比如 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

715. 分享:LayaAir实现曲线运动 [ 63%]

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

716. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 63%]

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

717. FlashDevelop中第一个程序“Hello Layabox”(ActionScript-LayaAir基础篇(AS3)-快速上手) [ 63%]

...** @author Charley */     public class HelloLayabox {   public function HelloLayabox() {    //创建舞台,默认背景色是黑色的    Laya.init(600, 300);    var txt:Text = new Text();         //设置文本内容    txt.text = "Hello Layabox";     ...

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

718. 昨天一开始运行好好的,没动别的,运行就开始报错 [ 63%]

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

719. 射线检测-选取物体 [ 63%]

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

720. runtime运行报错! [ 63%]

...跟踪代码,发现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