大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
Image var img___=new Image(); html的 image标签 怎么才能转换成 laya.texture var img___=new Image(); img___.src="res/card/select_main_card_bg.png" img___.onload = function(){ var image = new Laya.Image() image.source = img___...
来源: Laya_社区 发布时间: 20170122
...: String = ClipRect[static] ClipRectCmdProperty Detailheightpropertypublic var height:Number 高度。 widthproperty public var width:Number 宽度。 xproperty public var x:Number X 轴偏移量。 yproperty public var y:Number Y 轴偏移量。 Method Detailrecover()method public function recov...
来源: Laya2.0_api 发布时间: 20190513
...ineData):void 克隆。 PixelLineDataProperty DetailendColorpropertypublic var endColor:ColorendPositionproperty public var endPosition:Vector3startColorproperty public var startColor:ColorstartPositionproperty public var startPosition:Vector3Method DetailcloneTo()method public function cloneTo(d...
来源: Laya2.0_api 发布时间: 20190513
... ID : String = Scale[static] ScaleCmdProperty DetailpivotXpropertypublic var pivotX:Number (可选)水平方向轴心点坐标。 pivotYproperty public var pivotY:Number (可选)垂直方向轴心点坐标。 scaleXproperty public var scaleX:Number 水平方向缩放值。 scaleYproperty...
来源: Laya2.0_api 发布时间: 20190513
...lTextureInfo()DetailTextureInfoProperty DetaildiffuseTexturepropertypublic var diffuseTexture:StringnormalTextureproperty public var normalTexture:Stringoffsetproperty public var offset:Vector2scaleproperty public var scale:Vector2Constructor DetailDetailTextureInfo()Constructorpublic function De...
来源: Laya2.0_api 发布时间: 20190513
... (图) ####5. 调整 Tree 的宽高。 设置 Tree 对象的属性 var(全局引用名)的值为 m_tree ,此处名字可以自定义,目的是在脚本中对此 Tree 组件对象赋值。  (图) ####6. 在代码里给 Tree 对象赋值 ```javascr...
来源: Laya2.0_文档 发布时间: 20210715
...e function setWindowFullSize() : void { var stageW:int = 0; var stageH:int = 0; __JS__( 'stageW = Laya.window.innerWidth;' ); __JS__( 'stageH = Laya.window.innerHeight;' ); (stageW ...
来源: Laya_社区 发布时间: 20170317
...效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触发正常,如果我想使用Loader.getRes 来载入缓存的图片...
来源: Laya_社区 发布时间: 20171024
射线一直无法获取物体 添加物体: var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null,...
来源: Laya_社区 发布时间: 20170915
...e():void[override] RigidBodyProperty Detail_allowRotationpropertyprotected var _allowRotation:Boolean = true是否允许旋转,如果不希望刚体旋转,这设置为false_allowSleepproperty protected var _allowSleep:Boolean = true是否允许休眠,允许休眠能提高性能_angularDamping...
来源: Laya2.0_api 发布时间: 20190513