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

大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)

351. 这个方法在App上是不是无效的?canvas.toDataURL("image/png") [ 56%]

...,层级设置无效的问题 (此问题已经无效) 2.0 drawTexture color参数无效 LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, LayaAir3D UnityPlug 1.7.13 导出刚体动画无效 matter.js mouseconstraint在微信小游戏中无效 问题状态 最新活动...

来源: Laya_社区 发布时间: 20170814

352. 请教一个图片处理成黑白的问题 [ 56%]

...0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]; var grayscaleFilter = new ColorFilter(grayscaleMat); var grayApe = new Sprite(); grayApe.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(grayApe); grayApe.filters = [grayscaleFilter];如果一批图片 只要是 grayApe  Sprite  的 子...

来源: Laya_社区 发布时间: 20170615

353. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 56%]

....Text(); //设置文本内容 txt.text = "Hello"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素 txt.strokeColor = "#FFFFFF"; //设置为粗体 txt.bold = true; //设置文本的显示...

来源: Laya_社区 发布时间: 20171019

354. 问一下这个问题要怎么改啊? [ 56%]

... bgRes:String; public function Main() { Laya.init(2048,1536); Laya.stage.bgColor = "#333333"; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; bgRes = "res/bg.jpg"; addPic("res/bg.jpg", 0, 0); var txt:Text = new Text(); txt.text = "Fishing Game"; txt.color = "#FFFFFF"; txt.fontSize = 60; txt.stroke = 5; ...

来源: Laya_社区 发布时间: 20170522

355. [BUG]刚体约束问题,移动后约束混乱! [ 55%]

...w Laya.DirectionLight()) as Laya.DirectionLight;     directionLight.color = new Laya.Vector3(1, 1, 1);     //设置平行光的方向     directionLight.transform.worldMatrix.setForward(new Laya.Vector3(-1.0, -1.0, 1.0));          //平面     var plane = this.s...

来源: Laya_社区 发布时间: 20210103

356. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 55%]

... Laya.stage.scaleMode = Stage.SCALE_SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //图像资源 var res:Array = [ "../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png", "../../../../res/ui/tree/cl...

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

357. laya.d3.component.volume.reflectionprobe.ReflectionProbe_API3.0 [ 55%]

...itor scriptPath TEMPVECTOR3 defaultTextureHDRDecodeValues Accessors ambientColor ambientIntensity ambientMode ambientSH ambientSphericalHarmonics awaked bounds boundsMax boundsMin boxProjection customReflection destroyed enabled hideFlags iblTex iblTexRGBD id importance probePosition reflectionDecod...

来源: Laya3.0_api 发布时间: 20231115

358. html富文本为什么很多属性不起作用 [ 55%]

...不起作用 let html = new HTMLDivElement(); let str = "<span style='color:#ffffff; line-height:20px'>.....</span>" html.innerHTML=str; 比如这个line-height 怎么弄都是没反应。而且这里很多html/css的样式好像都设置不了,有限制的吗? 用html.style.leadin...

来源: Laya_社区 发布时间: 20170302

359. 关于event中只读属性touches,问题,求解 [ 55%]

...h { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt);...

来源: Laya_社区 发布时间: 20170519

360. 生成的粒子特效怎么设置colorComponentInter无效? [ 55%]

生成的粒子特效怎么设置colorComponentInter无效? function UILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAsse...

来源: Laya_社区 发布时间: 20161230