Jump to content

Custom models are tiny


d-luX

Recommended Posts

Hello everybody,

I've got a little problem and hope someone can help me.

 

For testing purposes I created a simple fence model in blender with the dimensions : x = 7m , y = 3m , z = 0.10m (R&S applied)

and imported the fbx to unity.

In unity the dimensions for the T_Block and T_Mesh_B are : 100 x 100 x 100 .

When i select my fence ingame the size is correct (Image1) but when i place my fence then it's very tiny (Image2).

 

Image1:

 

nL2xD6s.jpg

 

 

Image2:

 

xWk9EtX.jpg

 

Does anyone know what I did wrong?

 

Unity version : Unity 2019.1.0f2 (64-bit)

ExportAssetBundles:

 

using UnityEngine;
using UnityEditor;

public class ExportAssetBundles
{
[MenuItem("Assets/Build AssetBundle From Selection - Track dependencies")]
static void ExportResource()
{
// Bring up save panel
string path = EditorUtility.SaveFilePanel("Save Resource", "", "New Resource", "unity3d");
if (path.Length != 0)
{
// Build the resource file from the active selection.
Object[] selection = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
BuildPipeline.BuildAssetBundle(Selection.activeObj ect, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets, BuildTarget.StandaloneWindows);
Selection.objects = selection;
}
}
}

 

Thanks in advance.

Regards Chris

Link to comment
Share on other sites

I usually size it how I want in Blender and apply it. Then when I import it into Unity I uncheck Use File Scale on the right side in the Inspector area for the fbx file.

 

Scaling it in Unity should work though. But make sure you're scaling the child object(the mesh), and not the empty parent object.

Link to comment
Share on other sites

Use File Scale on the right side in the Inspector area for the fbx file.

 

Thank you for the hint. It works so far. The placed fence has the correct size now.

But when i just select my fence the size is very huge.

Very confusing.

 

 

Link to comment
Share on other sites

I only imported my fbx , unchecked "Convert Units" , created a empty object (nothing changed except the tag and the name) and dropped the mesh into the empty object.

Thats it.

 

EDIT***

 

I don't know exactly what you meant with : "What's your prefab in Unity look like?" .

That's why i've uploaded the unity-file + assets

 

https://drive.google.com/open?id=15JKVp6Ue_jQzOLtISqbmkf_EEeu1HQTV

Link to comment
Share on other sites

I made small video to show my problem.

There are two parts in this video.

 

[video=youtube_share;e467ZmmmGRs]

 

At 0:42 I havn't unchecked "Convert Units".

 

At 3:27 I unchecked "Convert Units".

 

Maybe i forget something?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...