# Error: use of undeclared identifier 'SceneTextureLookup'; did you mean 'MobileSceneTextureLookup'?

**URL:** <https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-scenetexturelookup-did-you-mean-mobilescenetexturelookup/834566>\
**Category:** Mobile\
**Tags:** unreal-engine, question\
**Created:** [March 30, 2023, 7:57pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-scenetexturelookup-did-you-mean-mobilescenetexturelookup/834566 "2023-03-30T19:57:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anim8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anim8d](https://forums.unrealengine.com/u/anim8d)\
**Post date:** [March 30, 2023, 7:57pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-scenetexturelookup-did-you-mean-mobilescenetexturelookup/834566/1 "2023-03-30T19:57:15Z")

</div>

I get this while building for iOS with a material that has a custom node that contains 'SceneTextureLookup.; However, when I replace that with MobileSceneTextureLookup, I get this when I try to build:

“Error: no matching function for call to ‘MobileSceneTextureLookup’”

What am I doing wrong here?

---

<div class="post-metadata">

**Author:** ![anim8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anim8d](https://forums.unrealengine.com/u/anim8d)\
**Post date:** [April 1, 2023, 5:20pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-scenetexturelookup-did-you-mean-mobilescenetexturelookup/834566/2 "2023-04-01T17:20:24Z")

</div>

I have learned my folly! The issue is that MobileSceneTextureLookup needs its parameters added a different way than SceneTextureLookup. So a line like this:

`float3 tex = SceneTextureLookup(uvShifted, TexIndex, false);`

Needs to be changed to this for mobile:

`float4 tex = MobileSceneTextureLookup(Parameters, TexIndex, uvShifted);`

Yes, that “Parameters” is literally the word “Parameters.” It surprised me as well. But now it works in iOS preview in the editor, though not 1:1 on an iDevice. I had to greatly exaggerate some other values to get it to look right on a device.

---

<div class="post-metadata">

**Author:** ![appiloper](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@appiloper](https://forums.unrealengine.com/u/appiloper)\
**Post date:** [November 18, 2024, 3:22pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-scenetexturelookup-did-you-mean-mobilescenetexturelookup/834566/3 "2024-11-18T15:22:32Z")

</div>

I get the same compiler error in an iOS build:

Error: UAT: /Engine/Generated/Material.ush:3424:19: error: use of undeclared identifier ‘SceneTextureLookup’; did you mean ‘MobileSceneTextureLookup’?

But I am using Blueprints and not C++, where can I still fix this error?
