IsEditable Method
IsEditable(SerializedObject)
Returns whether a SerializedObject is considered editable. It will return false if any of its targetObjects are marked with NotEditable or if there's an asset that isn't open for editing in version control. It's especially useful in combination with Disabler.
Declaration
public static bool IsEditable(this SerializedObject obj)
Parameters
SerializedObject | obj | The object to check. |
Returns
Boolean | Whether object is editable. |
IsEditable(SerializedObject, StatusQueryOptions)
Declaration
public static bool IsEditable(this SerializedObject obj, StatusQueryOptions queryOptions)
Parameters
SerializedObject | obj | |
StatusQueryOptions | queryOptions |
Returns
Boolean |