# UE4.27 Runtime USD Import

**URL:** <https://forums.unrealengine.com/t/ue4-27-runtime-usd-import/487753>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine, runtime, question\
**Created:** [August 20, 2021, 8:30pm UTC](https://forums.unrealengine.com/t/ue4-27-runtime-usd-import/487753 "2021-08-20T20:30:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SimplestWay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SimplestWay](https://forums.unrealengine.com/u/SimplestWay)\
**Post date:** [November 9, 2021, 7:01am UTC](https://forums.unrealengine.com/t/ue4-27-runtime-usd-import/487753/2 "2021-11-09T07:01:52Z")

</div>

When you try to load usd in runtime with log enabled, there will be a error log :

\*LogUsd: Error: The USD SDK is disabled because the executable is not forcing the ansi C allocator (you need to set ‘FORCE\_ANSI\_ALLOCATOR=1’ as a global definition on your project _.Target.cs file). Read the comments at the end of UnrealUSDWrapper.Build.cs for more details._

Accordding to the error log, I add

> BuildEnvironment =  
> TargetBuildEnvironment.Unique;  
> GlobalDefinitions.Add(“FORCE\_ANSI\_ALLOCATOR=1”);

Then, you should download your unreal engine from [github.com](http://github.com) and compile it by your own if you installed 4.27 from epic launcher, otherwise, you will meet another package error.

I gave up in this step because I decieded to switch to DatasmithRuntime to import scene in runtime for vray materials support.

Hope that helps.

---

_[View the full topic](https://forums.unrealengine.com/t/ue4-27-runtime-usd-import/487753)._
