大约有 3,975 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(49)
...看代码中是怎么使用的 先来看一个最基本的A*代码示例 var graph = new Graph([ [1,1,1,1], [0,1,1,0], [0,0,1,1] ]); var start = graph.grid[0][0]; var end = graph.grid[1][2]; var result = astar.search(graph, start, end); // result is an array containing the shortest path 1,graph ...
来源: Laya3.0_文档 发布时间: 20230303
...e = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector...
来源: Laya_示例 发布时间: 20241117
...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Utils = Laya.Utils; (function(){ Laya.init(550, 400); setup(); })(); function setup() { var xmlValueContainsError = "item aitem bsomethis..."; var xmlValue = "item aitem bsomethings..."; proessXML(xmlValueContainsError); ...
来源: Laya_示例 发布时间: 20241117
...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var EventData = Laya.EventData; var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Sprite = Laya.Sprite; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var Stat = Laya.Stat; var Twe...
来源: Laya_示例 发布时间: 20241117
...更完美了。 ![](img/2.png)(图2) ```typescript //随机生成坐标值 var sX = Math.random() * 0.75 + 0.25; var sY = Math.random() * 0.75 + 0.25; var sZ = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, ...
来源: Laya2.0_文档 发布时间: 20210715
...度。NodeProperty DetailCOLOROVERLIFEGRADIENTALPHASpropertypublic static var COLOROVERLIFEGRADIENTALPHAS:intCOLOROVERLIFEGRADIENTCOLORSproperty public static var COLOROVERLIFEGRADIENTCOLORS:intCURRENTTIMEproperty public static var CURRENTTIME:intGRAVITYproperty public static var GRAVITY:intMAXCO...
来源: Laya2.0_api 发布时间: 20190513
...emo,但是报找不到laya类的错误.这是layaUI.max.all.js里的代码:var WebGL = laya.webgl.WebGL; var Stage = laya.display.Stage; var Browser = laya.utils.Browser; var Sprite = laya.display.Sprite; var TextInput = Laya.TextInput; var Event = laya.events.Event; var Handler = Laya.Handler; var ...
来源: Laya_社区 发布时间: 20201001
...nction Controller_yao1yao(model:Model) { __JS__('_model = model'); __JS__('var SHAKE_THRESHOLD = 100'); __JS__('var last_update = 0'); __JS__('var x = y = z = last_x = last_y = last_z = 0;'); __JS__('var canShake = 1'); __JS__('if (window.DeviceMotionEvent){window.addEventListener("devicemotion", de...
来源: Laya_社区 发布时间: 20160110
...ipt三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Skeleton = Laya.Skeleton; var Templet = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var mAniPath; var mStartX = 200; var mStartY = 500; var mFactory; var...
来源: Laya_示例 发布时间: 20241117
...更完美了。 ![](img/2.png)(图2) ```typescript //随机生成坐标值 var sX:int = Math.random() * 0.75 + 0.25; var sY:int = Math.random() * 0.75 + 0.25; var sZ:int = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.cre...
来源: Laya2.0_文档 发布时间: 20210714