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

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

141. 求HTTP相关的文档或者例子谢谢了 [ 94%]

...":0, "message":"Your message has been successfully uploaded!" } package { import flash.display.Sprite; import flash.events.Event; import flash.events.HTTPStatusEvent; import flash.events.IOErrorEvent; import flash.events.ProgressEvent; import flash.events.SecurityErrorEvent; import flash.net.URLLoa...

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

142. Sprite-旋转缩放 [ 94%]

...cale(scaleValue, scaleValue); } } new Sprite_RoateAndScale();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_RoateAndScale { private ape: Sprite; private scaleDelta: number ...

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

143. 自定义shader-简单shader [ 94%]

...s, attributeMap, uniformMap); } } new Shader_Simple;package shaderModule { import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Quaternion; import laya.d3.math.Vect...

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

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

问一下这个问题要怎么改啊? appPic.as   package { import laya.display.Sprite; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public funct...

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

145. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 94%]

...可以在舞台上显示多个动画。 代码示例: ```java package { import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; /** * ... * @author ww */ public class SkeletonTempletSample { public var templet:Templet; public function Skeleto...

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

146. 输入设备-指南针 [ 94%]

... -1 * Math.floor(info.beta) / 90 * 70 + compassImg.y; } })() module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya.Gyroscope; import RotationInfo = Laya.RotationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; import...

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

147. 【Laya2.1BUG】 给view设置runtime后,类型是any [ 94%]

...}2,修改CodeManager.objToUI函数: 把if(ProjectSetting.codeType==0){ imports+=" import "+lib+";\n"; }改成:if(ProjectSetting.codeType==0){ imports+=" import "+lib+";\n"; }else if(this.projectSetting.codeType==1&&lib.lastIndexOf(".ts")==lib.length-3){ libName=lib.substring(lib.lastIn...

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

148. 输入设备-指南针 [ 94%]

...eta) / 90 * 70 + compassImg.y; } } new InputDevice_Compass();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya.Gyroscope; import RotationInfo = Laya.RotationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; import...

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

149. 骨骼动画-换装 [ 94%]

...ature.play(mCurrIndex, false); } } new Skeleton_ChangeSkin();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; ...

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

150. Socket连接不上(已解决) [ 94%]

...e。 能帮忙看是什么原因么?   具体代码: package {     import laya.display.Text;     import laya.events.Event;     import laya.net.Socket;     import laya.utils.Byte;     import laya.utils.Log;     import laya.webgl.WebGL; //    import laya.webgl.WebGL;      ...

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