Jump to content

Prefabricated does not load on the map, the editor closes.


Yue
 Share

Go to solution Solved by Josh,

Recommended Posts

I found this:

				"prefab": {
					"path": "Models/Prefabs/ModuleA.pfb"
				},

The prefab tries to load itself.

The solution is I need to break the prefabs when a prefab is saved, although I have no idea how you created this one.

Unity needs nested prefabs because they treat FBX files as a collection of meshes to assemble prefabs from. Our model format supports a lot of information, and I think nested prefabs might not be needed in Ultra.

  • Like 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 2 weeks later...
{
	"scene": {
		"entities": [
			{
				"group": "1351923569312",
				"kids": [
					{
						"brush": {
							"faces": [
								{
									"indicecount": 4,
									"indices": 240,
									"localmappingplane": [
										[
											1.0,
											0.0,
											0.0,
											10.0
										],
										[
											0.0,
											0.0,
											-1.0,
											2.0
										]
									],
									"mappingoffset": [
										-1.5625,
										0.7812498211860657
									],
									"mappingplane": [
										[
											1.0,
											0.0,
											0.0,
											10.0
										],
										[
											0.0,
											0.0,
											-1.0,
											2.0
										]
									],
									"mappingscale": [
										400.0,
										400.0
									]
								},
								{
									"indicecount": 4,
									"indices": 248,
									"localmappingplane": [
										[
											-1.0,
											0.0,
											0.0,
											-10.0
										],
										[
											0.0,
											0.0,
											-1.0,
											2.0
										]
									],
									"mappingoffset": [
										1.5625,
										0.7812498211860657
									],
									"mappingplane": [
										[
											-1.0,
											0.0,
											0.0,
											-10.0
										],
										[
											0.0,
											0.0,
											-1.0,
											2.0
										]
									],
									"mappingscale": [
										400.0,
										400.0
									]
								},
								{
									"indicecount": 4,
									"indices": 256,
									"localmappingplane": [
										[
											-1.0,
											0.0,
											0.0,
											-10.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingoffset": [
										1.5625,
										0.5859376788139343
									],
									"mappingplane": [
										[
											-1.0,
											0.0,
											0.0,
											-10.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingscale": [
										400.0,
										400.0
									]
								},
								{
									"indicecount": 4,
									"indices": 264,
									"localmappingplane": [
										[
											1.0,
											0.0,
											0.0,
											10.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingoffset": [
										-1.5625,
										0.5859376788139343
									],
									"mappingplane": [
										[
											1.0,
											0.0,
											0.0,
											10.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingscale": [
										400.0,
										400.0
									]
								},
								{
									"indicecount": 4,
									"indices": 272,
									"localmappingplane": [
										[
											0.0,
											0.0,
											-1.0,
											2.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingoffset": [
										0.7812498211860657,
										0.5859376788139343
									],
									"mappingplane": [
										[
											0.0,
											0.0,
											-1.0,
											2.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingscale": [
										400.0,
										400.0
									]
								},
								{
									"indicecount": 4,
									"indices": 280,
									"localmappingplane": [
										[
											0.0,
											0.0,
											1.0,
											-2.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingoffset": [
										-0.7812498211860657,
										0.5859376788139343
									],
									"mappingplane": [
										[
											0.0,
											0.0,
											1.0,
											-2.0
										],
										[
											0.0,
											-1.0,
											0.0,
											-0.5
										]
									],
									"mappingscale": [
										400.0,
										400.0
									]
								}
							],
							"material": {
								"path": "Materials/Ground/Mars.mat"
							},
							"vertexcount": 8,
							"vertices": 144
						},
						"matrix": [
							"0x3f800000",
							"0x0",
							"0x0",
							"0x0",
							"0x0",
							"0x3f800000",
							"0x0",
							"0x0",
							"0x0",
							"0x0",
							"0x3f800000",
							"0x0",
							"0xc0000000",
							"0x40200002",
							"0x407ffffe",
							"0x3f800000"
						],
						"position": [
							"0x41000000",
							"0x0",
							"0x0"
						],
						"prefabuuid": "3d8c3fc0-09e7-4308-a669-4d765c79676a",
						"quaternion": [
							"0x80000000",
							"0x80000000",
							"0x80000000",
							"0x3f800000"
						],
						"rotation": [
							"0x80000000",
							"0x0",
							"0x0"
						],
						"scale": [
							"0x3f800000",
							"0x3f800000",
							"0x3f800000"
						],
						"uuid": "9900d8f9-6f60-4f45-8268-3a581bc31926"
					}
				],
				"matrix": [
					"0x3f800000",
					"0x0",
					"0x0",
					"0x0",
					"0x0",
					"0x3f800000",
					"0x0",
					"0x0",
					"0x0",
					"0x0",
					"0x3f800000",
					"0x0",
					"0xc1200000",
					"0x40200002",
					"0x407ffffe",
					"0x3f800000"
				],
				"position": [
					"0xc1200000",
					"0x40200002",
					"0x407ffffe"
				],
				"prefab": {
					"path": "Prefabs/test.pfb"
				},
				"prefabuuid": "1674f7d8-7e90-4a4c-87d1-f7cb6b3b3d08",
				"quaternion": [
					"0x0",
					"0x0",
					"0x0",
					"0x3f800000"
				],
				"rotation": [
					"0x0",
					"0x0",
					"0x0"
				],
				"scale": [
					"0x3f800000",
					"0x3f800000",
					"0x3f800000"
				],
				"uuid": "5fa9b8ed-c016-4f2e-8416-b3dda8347b43"
			}
		]
	}
}    @  À?  €@   À  À?  €@   À  À?  €À   @  À?  €À   @  À¿  €@   À  À¿  €@   À  À¿  €À   @  À¿  €À                              @  À?  €@   À  À?  €@   À  À?  €À   @  À?  €À   @  À¿  €@   À  À¿  €@   À  À¿  €À   @  À¿  €À                           

Code Prefabs

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

  • 4 months later...
  • Solution

When this prefab is loaded, an error message appears that says "Nested prefabs are not supported." So I think this is fixed.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...