Unity Error: Material doesn’t have a texture property ‘_ShadowOffset’

Some textures will throw an error when you are trying to apply them. I encountered this when I tried to apply the BigTree_bark material to a tree branch. BigTree_branch did not give the error, so this is what I discovered:

Error:
Material doesn't have a texture property '_ShadowOffset'
UnityEditor.DockArea:OnGUI()

Explanation:

The texture has a varaible for _ShadowOffset which is necessary for some uses. [source]

Solution:
If you’re building a tree using the Tree Creator asset package, use the BigTree_branch material instead of the bark. I originally tried to edit the Shader itself to add _ShadowOffset, but it didn’t work. Using another texture or recreating the texture might be the best option.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: