is possible to tile within a texture atlas?

is possible to tile within a texture atlas?

In other words If I have a small brick texture inside a larger texture atlas. Is there a way to only tile the brick part across the mesh.

I have found that it is indeed possible to tile textures in a texture atlas by modifying the shader.

In your pixel output function where the text2D() sampler function is called change your IN.uv_MainTex (or what ever your main texture uv variable is called) to:

(frac(IN.uv_MainTex) * 0.25f + offset) //this assumes a 4 x 4 texture atlas

so the entire line will look like this

fixed4 tex = tex2D(_MainTex, (frac(IN.uv_MainTex) * 0.25f) + offset);

instead of

fixed4 tex = tex2D(_MainTex, IN.uv_MainTex);

you will have to set offset as a variable that is present in the editor by declaring it in the properties section of your HLSL code