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

大约有 1,054 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0072 秒)

61. 3D场景-地形场景 [ 88%]

...rrainScene/XunLongShi.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/...

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

62. bind函数的作用 [ 87%]

...otoLoaded.bind(this)); a15715740412 • 2018-01-30 16:31 /** * For a given function, creates a bound function that has the same body as the original function. * The this object of the bound function is associated with the specified object, and has the specified initial parameters. * @param thisArg A...

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

63. LAYA的AS3项目碰见个问题,求解 [ 87%]

...t;   mytexts.as: public class myTexts extends myTextsUI        public function myTexts()         {             super();         }         override protected function initialize():void         {             super.initialize();         }        ...

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

64. 【官网代码】加载dom音频报错,怎么回事? [ 87%]

...rivate var analyser:Object;private var audioBufferSourceNode:Object;public function Main(){Laya.init(500,500);AudioContext =Browser.window.AudioContext || Browser.window.webkitAudioContext;audioContext = new AudioContext();analyser = audioContext.createAnalyser();analyser.fftSize = 256;Laya.stage.on...

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

65. 高级应用-实时阴影 [ 87%]

...)); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.direction = _direction...

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

66. 文本-自动换行 [ 87%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL...

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

67. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 87%]

.../1.png)(图1) > 加载完成,设置遮挡图并且 ```typescript private function onLoadFinish():void { .......//前面摄影机,猴子精灵相关操作忽略 var heightMap:Texture2D = Loader.getRes("res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Texture2D; //初始化MeshTerrainSp...

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

68. 网络和格式-XML [ 87%]

...ipt、TypeScript三种开发语言、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(xmlValueCon...

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

69. 分享:List相关(Item增删功能) [ 87%]

...istP:ListPageUI;//UI面板 private var arr:Array;//list数据数组 public function LayaUISample() { //初始化引擎 Laya.init(600, 800); Laya.stage.bgColor = "#ffcccc"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, on...

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

70. laya.d3.core.material.GlitterMaterial [ 87%]

...edopropertyalbedo:Vector4 获取反射率。 Implementation     public function get albedo():Vector4    public function set albedo(value:Vector4):voidcolorproperty color:Vector4 获取颜色。 Implementation     public function get color():Vector4    public function set color(value...

来源: laya_api 发布时间: 20170929