大约有 236 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)
...===================================== button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, height: 155 mouse position, x: 374, y: 835 event type: mouseout button width: 155, height: 155 mouse position, x: 374, y: 835 event type: click button width: 155, ...
来源: Laya_社区 发布时间: 20180724
...l.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); var _position = new Laya.Vector3(0, 0, 0); var _offset = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { var sphere = scene.addChild(new Laya.M...
来源: Laya_示例 发布时间: 20241001
...偏移 <div style="padding: 50px 0px;height:100vh"> <div style="position: relative"> <div id="mylayaCanvas" ></div> </div> </div>如代码所示 指定layacanvas外包两层div 样式如代码这样设置后发生点击的范围跟实际按钮展示的范围发生...
来源: Laya_社区 发布时间: 20200825
...yteArray(); // asd.endian = ByteArray.BIG_ENDIAN; asd.writeUint32(11); asd.position = 0; trace(asd.readUnsignedInt()); 为什么打印出来是0???? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...
来源: Laya_社区 发布时间: 20170117
...ya.PrimitiveMesh.createPlane(40, 40, 40, 40))); plane.transform.position = new Laya.Vector3(0, -2.0, 0); var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) { ...
来源: Laya_社区 发布时间: 20210103
...获取经纬度报错? // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°)...
来源: Laya_社区 发布时间: 20180402
...nvertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.position = _translate; Laya.stage.on(Laya.Event.RESIZE, null, function() { camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.position = _translate; }); }); class OrthographicCamera { private ...
来源: Laya_示例 发布时间: 20241001
..."u_Time"); constructor() { super(); var vs:string = ` attribute vec4 a_Position; attribute vec2 a_Textcoord; attribute vec3 a_Normal; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { v_textcoord = a_Textc...
来源: Laya_社区 发布时间: 20190923
LAYA_API #laya_nav { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media...
来源: Laya3.0_api 发布时间: 20230115
LAYA_API #laya_nav { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media...
来源: Laya3.0_api 发布时间: 20230115