# InstanceFinder

There is a lot of useful information you can get from [NetworkBehaviours ](/docs/fishnet-building-blocks/components/network-behaviour-components.md)but there may be some cases that your script does not inherit from NetworkBehaviour. This is where InstanceFinder can help you out.

InstanceFinder provides you quick access to commonly needed references or information. Some examples are: [SceneManager](/docs/fishnet-building-blocks/components/managers/scenemanager.md), IsClientStarted, [TimeManager](/docs/fishnet-building-blocks/components/managers/time-manager.md), and [more](https://fish-networking.com/FishNet/api/api/FishNet.InstanceFinder.html#properties).

```csharp
public class MyButton : MonoBehaviour
{
    public Image ButtonImage;
    
    /* It wouldn't make sense to update the UI
    * color on the server since it will have
    * no graphical interface. To save performance
    * we're only going to update color if client.
    * However, since this is a MonoBehaviour class
    * you do not have access to base.IsClientStarted.
    * Instead the InstanceFinder may be used. */
    private void SetColor(Color c)
    {
        if (InstanceFinder.IsClientStarted)
            ButtonImage.color = c;
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://fish-networking.gitbook.io/docs/guides/features/instancefinder-guides.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
