# CountRemaining()

> Count remaining visible properties.

## Definition

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

```csharp
public int CountRemaining()
```

### Returns

| Type                                                       | Description |
| ---------------------------------------------------------- | ----------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) |             |

### Remarks

This is useful for allocating height for drawing this property and all the following ones. Note that calling this method will move the property forward to the end of the [SerializedObject](/engine/6000.0/script-reference/unityeditor/serializedobject.md). If this is not the desired behavior either use [SerializedProperty.Copy](/engine/6000.0/script-reference/unityeditor/serializedproperty/copy.md) to make a copy of the current property before calling this method or [SerializedProperty.Reset](/engine/6000.0/script-reference/unityeditor/serializedproperty/reset.md) to reset the property after calling this method.

Additional Resources: [SerializedProperty.hasVisibleChildren](/engine/6000.0/script-reference/unityeditor/serializedproperty/hasvisiblechildren.md), [SerializedProperty.CountInProperty](/engine/6000.0/script-reference/unityeditor/serializedproperty/countinproperty.md)
