new WindowStyle(param)
构造函数
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
param |
Object |
Properties
|
Extends
- BaseTextureStyle
Members
-
color :Array.<Number>|String
获取/设置窗体的颜色
-
Example
geoBuilding.window.color = [1,0,0];//设置窗体颜色为红色 -
textureWrap :TextureWrapMode
获取/设置窗体贴图模式 有两种模式一种是normal即窗体的贴图与建筑或者多边形的贴图采用一套uv另一种是around 即窗体单独采用一套uv 是绕着建筑或者多边形,依据纹理尺寸环绕贴
-
Example
geoBuilding.window.textureWrap = TextureWrapMode.Around;//设置窗体贴图模式为环绕模式