Most "AI asset failed to import" stories are naming stories. The mesh arrived, the geometry was fine, and then a script could not find Left_Arm because the file called it leftArm. A naming contract is the cheapest fix in the entire pipeline: one list, converted mechanically, checked before the first import.

Three vocabularies, one list

The same five parts have to survive three environments with different conventions.

  • CubePart schema: lower snake case identifiers, because the schema is a list of labels attached to a prompt. left_arm, front_wheel, hinge_plate.
  • Roblox Studio: instance names are compared case-sensitively and usually fetched with WaitForChild("Name"). PascalCase (LeftArm) is the community convention because it reads like a service or class name in Lua.
  • Unity: GameObject and mesh asset names are free-form, but string-based lookup (transform.Find("Name")) and animation paths both depend on exact spelling. Removing spaces avoids a class of quoting mistakes.

The important property is not which convention you choose. It is that the conversion is mechanical, one-way and reversible, so a rename in the schema propagates predictably instead of being retyped by hand in three tools.

Convert, do not translate

A converter should do exactly five things and nothing clever: trim whitespace, strip brackets and quotes, split camelCase and spaces into words, lowercase, then join with underscores (schema) or capitals (engine). It must also reject empty results and flag collisions, because the only genuinely dangerous outcome is two parts landing on the same name.

Hand-renaming fails for a structural reason: the mapping exists only in someone's head. Two months later a new part is added, the mapping is re-derived differently, and half the assets use LeftArm while the other half use ArmLeft. Nothing crashes immediately, which is worse — one prefab silently loses its animation binding.

Duplicates and near-duplicates

Case-insensitive comparison catches the obvious case: Lid and lid are the same name in practice, even where a format technically distinguishes them. Separator-insensitive comparison catches the next layer: left_arm, leftArm and Left Arm all normalise to leftarm, so they cannot coexist.

Then there are semantic duplicates, which no converter can catch: lid and cover, body and hull, wheel and tyre. Those are a schema review problem. The practical rule is to search the list for any pair you would not be able to distinguish in a file browser, and merge one of them.

A rename protocol that fails loudly

Renames are normal; silent renames are not. Adopt a three-step protocol.

  1. Keep a mapping table in the asset folder: old name, new name, date, reason. One line per rename. This is the only place history matters.
  2. Make lookups strict. In Roblox, WaitForChild("Lid") without a timeout yields forever and produces no error — use a short timeout and raise, so a missing part is visible. In Unity, resolve parts in an Awake method and log a named error listing what was found.
  3. Update the export, not the consumer first. Change the schema, regenerate or rename the meshes, verify the file listing, then update scripts. Doing it in the other order creates a window where the asset cannot load.

Part name converter

Converts one list into engine-style names and flags duplicates. The rules below are conventions for script access, not engine limits.

Engine traps worth knowing

Leading digits. 2nd_handle is legal in many formats and horrible in code. Prefix it: handle_2.

Reserved-looking words. Instance and object names are usually not reserved words — Roblox will happily name a part end or function — but any code that turns the name into a variable or a property will break. Keep names out of the keyword space, because the cost of avoiding it is zero.

Spaces. Spaces survive a file import and then break a string lookup typed by hand. If a format requires readability in the editor, use PascalCase instead of spaces and set a display label separately.

Unicode. Non-ASCII names work in some editors and not others, and they make diffs and logs hard to compare. The glTF 2.0 specification types name as an ordinary JSON string, so the format allows them while your scripts may not. Use ASCII identifiers and keep the Chinese or English display text in a description field.

Long names. Beyond roughly forty characters, names get truncated in UI columns and in logs, which is where you will be debugging.

What the contract looks like in practice

A one-page contract is enough: the schema list, the engine list, the mapping rule, the duplicate rule, and the strict-lookup requirement. Store it beside the asset and reference it from the build script. When a new team member adds a part, the contract answers the only two questions that matter — what is it called, and who reads it — without a meeting.

The payoff is unglamorous and real: imports work on the first attempt, animations bind to the intended part, and a missing piece produces an error message with a name in it instead of a mystery. Naming is not a cosmetic step at the end of asset production; it is the interface definition at the start.

Checklist before the first import

  • Every name passes the same converter, with no manual exceptions.
  • No two names collide after lowercasing and removing separators.
  • Every part has a stated reader: a script, an animation, a collider group or a material slot.
  • Engine names match the schema one-to-one; no part exists in only one list.
  • Lookups are strict and raise on absence.
  • The mapping table is committed with the asset.

Case sensitivity is a platform property, not a preference

Windows and macOS treat filenames case-insensitively by default; Linux does not. Roblox and Unity both resolve instance names case-sensitively at runtime. The result is a class of bug where a part resolves on the artist's machine and fails on a build machine, because the file that provided the name was found under a different casing.

Two habits remove it. Normalise before comparing, always, using lowercase and no separators as the comparison key. And treat a case-only rename as a real rename: update the schema, update the export, update the mapping table, verify the import. It feels excessive for one capital letter; it is the difference between a five-minute fix and a failed build.

A mapping table that survives a year

The table needs four columns and no ceremony: schema name, engine name, reader, notes. One row per part. "Reader" is the script, animation or system that consumes it — the column that stops dead parts from accumulating. "Notes" holds the one exception you will otherwise forget, such as a part that is decorative but kept for material swaps.

When a rename happens, append a row rather than editing the old one, with the date and reason. Git already stores history, but the reason is rarely in the diff, and the reason is what the next person needs. A dozen appended rows over a year is a healthy asset, not a messy one.

This table is also the natural input to a build check: enumerate the engine names in the exported file, compare them with the table, and fail on any mismatch. That single comparison catches the majority of real import failures before they reach a reviewer.