# SetCameraAnimateMaterialsTime(Camera, float)

> Sets the global time for this camera to use when rendering.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void SetCameraAnimateMaterialsTime(Camera camera, float time)
```

### Parameters

**** (\[Camera]\(/engine/6000.5/script-reference/unityengine/camera)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Remarks

If [EditorUtility.SetCameraAnimateMaterials](/engine/6000.5/script-reference/unityeditor/editorutility/setcameraanimatematerials.md) is true for the given [Camera](/engine/6000.5/script-reference/unityengine/camera.md), this is the value that will be used for the time passed through to any used shaders.

Additional Resources: [EditorUtility.SetCameraAnimateMaterials](/engine/6000.5/script-reference/unityeditor/editorutility/setcameraanimatematerials.md).
