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

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

121. 射线检测-碰撞器混合 [ 62%]

...de = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loa...

来源: Laya_示例 发布时间: 20240930

122. LayaAir编译器错之for_in [ 61%]

...null;                 if(((Loader.loadedMap[i])instanceof laya.resource.Texture )){                     t=Loader.loadedMap[i];                     t.destroy();                 }                 delete Loader.loadedMap[i];        ...

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

123. 鼠标交互-拖动 [ 61%]

....Stage; import laya.events.Event; import laya.maths.Rectangle; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Interaction_Drag { private const ApePath:String = "../../res/apes/monkey2.png"; private var ape:Sprite; private var...

来源: Laya2.0_示例 发布时间: 20240930

124. laya.d3.core.trail.TrailMaterial [ 61%]

...lClasspublic class TrailMaterialInheritanceTrailMaterial BaseMaterial laya.resource.Resource TrailMaterial 类用于实现拖尾材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 BaseMater...

来源: Laya2.0_api 发布时间: 20190513

125. laya.d3.core.material.EffectMaterial [ 61%]

...lasspublic class EffectMaterialInheritanceEffectMaterial BaseMaterial laya.resource.Resource EffectMaterial 类用于实现Mesh特效材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 Base...

来源: Laya2.0_api 发布时间: 20190513

126. Sprite中的width,height和size(width,height)感觉没作用啊 [ 61%]

....loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){         sprite.graphics.clear();         sprite.graphics.drawTexture(texture,0,0,50,50);         sprite.autoSize = true; })); Laya.stage.addChild(sprite); 或者用Image: var image:laya....

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

127. Laya.Sprite 和 laya.display.Sprite 是一样的吗? [ 61%]

... laya.display.Sprite import Loader = laya.net.Loader import Texture = laya.resource.Texture import Handler = laya.utils.Handler import Browser = laya.utils.Browser import TiledMap = laya.map.TiledMap import Rectangle = laya.maths.Rectangle import Stat = laya.utils.Stat import TextFiled = laya.displa...

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

128. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 61%]

...据是在图片的前面写入了四个字节的数据 Laya.loader.fetch("resources/res/test.bin","arraybuffer").then((res)=>{ //获得res的ArrayBuffer数据 let arraybuffer: ArrayBuffer = res; //Byte数组接收arraybuffer let byte:Byte = new Byte(arraybuffer); //从第四个字节开始读取...

来源: Laya3.0_文档 发布时间: 20230303

129. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 61%]

...rikenParticleMaterialInheritanceShurikenParticleMaterial BaseMaterial laya.resource.Resource ShurikenParticleMaterial 类用于实现粒子材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪...

来源: Laya2.0_api 发布时间: 20190513

130. 关于大量图片加载绘制后的内存暴增的疑问 [ 61%]

... package { import laya.display.Sprite; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 priv...

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