大约有 3,990 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...: 不支持标签嵌套的方式,你改成以下代码是可以正常的var div:HTMLDivElement = new HTMLDivElement(); var str:String = "<span style='font:48px;color:#ffffff;'>白色文本</span>"; div.innerHTML = str; trace(div.contextWidth);可以把你div的样式,给span赋值上...
来源: Laya_社区 发布时间: 20170309
...个clip,interval字段妖孽无效 直接上代码 var xml:XML = Laya.loader.getRes("res/config.xml"); xml = xml.firstChild; for (var node:XML = xml.firstChild; node != null; node = node.nextSibling) { ...
来源: Laya_社区 发布时间: 20170918
...niform mat4 u_MvpMatrix; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; varying vec2 v_Texcoord0; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; v_Texcoord0 = a_Texcoord0; gl_Position=remapGLPositionZ(gl_Pos...
来源: Laya2.0_文档 发布时间: 20210714
...shader例子,有没有2d的shader例子? private initShader(): void { var attributeMap = { 'a_Position': Laya.VertexElementUsage.POSITION0, 'a_Normal': Laya.VertexElementUsage.NORMAL0 }; var uniformMap = { 'u_MvpMatrix': [Laya.Sprite3D.MVPMATRIX, Laya.Shader3D.PERIOD_SPRITE], 'u_WorldMat': [Laya...
来源: Laya_社区 发布时间: 20180904
...法关闭 IDE版本1.7.15这是我在编辑模式发布的一个对话框var testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.ca...
来源: Laya_社区 发布时间: 20180325
...epeatY 的值为6。设置 List 对象的全局引用名,即设置属性 var 的值为 m_list。  (图5) ####6. 在代码里给 List 对象赋值。 ```javascript var data:Array =[]; for(var m:int =0;m (图6) ####8. 在代码里添加脚本,隐藏滚...
来源: Laya2.0_文档 发布时间: 20210715
...ction(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { mate...
来源: Laya2.0_文档 发布时间: 20210714
多边形无法闭合 (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var WebGL = Laya.WebGL; var sp; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...
来源: Laya_社区 发布时间: 20171219
...m install source-map 4、npm install stacktracey 5、解析脚本: var errorStack = process.argv[2]; var mapFilePath = process.argv[3]; var sourceMap = require('source-map'); var fs = require('fs'); var Stacktracey = require('stacktracey'); async function main() { // const errorStack = "at...
来源: Laya_社区 发布时间: 20200720
...a.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(800,600,WebGL); index=15; mFactory=new Templet(); mFactory.on(Event.COMPLE...
来源: Laya_社区 发布时间: 20170509