- Home /
How to tilt texture every second with this Unity script ?
Hi, I have a simple question. I want to get a texture to tilt during gameplay. I have found this unity script : https://docs.unity3d.com/ScriptReference/Material.SetTextureOffset.html It is very simple yet I don't know what _MainTex is supposed to be in my case. They say it's "(string propertyName)" I don't know what that is, I couldn't find information.
The texture as I put as albedo is called abc, i tried to put "abc" as a string but it didn't work.
Thank you :)
nouvelle-image-bitmap.png
(90.1 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612104935im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
My vehicle wont perform both the Tilt and Turn 0 Answers
Using Mathf.Clamp in unity for boundries 2 Answers
Is there a way to know if the device supports tilt? 1 Answer
iPhone tilt Control 0 Answers