大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0079 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...ory=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript var hitResult:HitResult = new HitResult(); var hitResults:Vector. = new Vector.(); //是否穿透 if (castAll) { //进行射线检测,检测所有碰撞的物体 scene.physicsSimulation.raycastAllFromTo(from, to, hitResults);...
来源: Laya2.0_文档 发布时间: 20210715
...t 设计上的疑问? Laya.init(600, 600); Laya.stage.bgColor = "white"; var sp = ; //10x10个黑色方块,鼠标移动过去时变红,鼠标移走恢复 for (var i = 0; i < 10; i++) { for (var j = 0; j < 10; j++) { sp[j + i * 10] = new Laya.Sprite(); Laya.s...
来源: Laya_社区 发布时间: 20160715
...CALE_FIXED_HEIGHT; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; var scene = new Laya.Sprite(); scene.width = Laya.stage.width; scene.height = Laya.stage.height; scene.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene); var inputText = new...
来源: Laya_社区 发布时间: 20200223
...本) class AnimatorStateScriptTest extends AnimatorStateScript { private var _text:Text = null; public function get text():Text { return _text; } public function set text(value:Text):int { _text = value; } public function AnimatorStateScriptTest() { } /** * 动画状态开始时执行。 */ override...
来源: Laya2.0_文档 发布时间: 20210714
...子从左下角开始渲染TiledMapProperty DetailantiCrackpropertypublic var antiCrack:Boolean = true 是否调整地块边缘消除缩放导致的缝隙 autoCacheproperty public var autoCache:Boolean = true 是否自动缓存没有动画的地块 autoCacheTypeproperty public var autoCacheType:St...
来源: laya_api 发布时间: 20170929
...子从左下角开始渲染TiledMapProperty DetailantiCrackpropertypublic var antiCrack:Boolean = true 是否调整地块边缘消除缩放导致的缝隙 autoCacheproperty public var autoCache:Boolean = true 是否自动缓存没有动画的地块 autoCacheTypeproperty public var autoCacheType:St...
来源: Laya2.0_api 发布时间: 20190513
...删除 2017-06-15 0 0 分享 微博 QZONE 微信 189*****192 赞同来自: var grayscaleMat = [0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 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(...
来源: Laya_社区 发布时间: 20170615
...ory=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript var hitResult:Laya.HitResult = new Laya.HitResult(); var hitResults = []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, t...
来源: Laya2.0_文档 发布时间: 20210715
...Laya.stage.scaleMode = "exactfit"; //实例一个背景 var bg = new Laya.Image(); bg.skin = "res/bg.png"; Laya.stage.addChild(bg); })(); 在layaIDE,微信开发者工具模拟器,和iPhoneX真机上的显示效果分别如图: 附件 : -->...
来源: Laya_社区 发布时间: 20180604
...。。。旧版的加载lm文件在29-43行、 // 载入并显示鱼模型 var fish = new Laya.MeshSprite3D(Laya.Mesh.load("fish/denglongyu/FBXtoolsdaochu/denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Text...
来源: Laya_社区 发布时间: 20171206