点对点
This commit is contained in:
@@ -192,9 +192,7 @@ namespace NBF
|
||||
this.UnloadModel();
|
||||
_model = model.transform;
|
||||
_model.SetParent(this.modelRoot, false);
|
||||
var h = CalculateModelHeight(model); //计算包围盒高度
|
||||
var pos = _model.localPosition;
|
||||
_model.localPosition = new Vector3(pos.x, pos.y - h * 0.5f, pos.z);
|
||||
_model.AlignmentParentCenter();
|
||||
}
|
||||
|
||||
public void UnloadModel()
|
||||
@@ -250,7 +248,7 @@ namespace NBF
|
||||
|
||||
_renderTexture = new RenderTexture(_width, _height, 24, RenderTextureFormat.ARGB32)
|
||||
{
|
||||
antiAliasing = 1,
|
||||
antiAliasing = 2,
|
||||
filterMode = FilterMode.Bilinear,
|
||||
anisoLevel = 0,
|
||||
useMipMap = false
|
||||
|
||||
Reference in New Issue
Block a user