DustProductions.Core API Documentation
DustProductions.Core API Documentation
DustProductions.Core
ExtensionMethods Class
ExtensionMethods Methods
SetEnabled Method
SetEnabled Method (List(Behaviour), Boolean)
SetEnabled Method (Behaviour[], Boolean)
ExtensionMethods
SetEnabled Method (List
Behaviour
, Boolean)
Helper to set a list of Behaviours active or inactive.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
static
void
SetEnabled
(
this
List
<
Behaviour
>
behaviours
,
bool
enabled
)
Parameters
behaviours
Type:
System.Collections.Generic
List
Behaviour
Behaviours to set
enabled
Type:
System
Boolean
True for enabled, false for disabled
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
List
Behaviour
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
ExtensionMethods Class
SetEnabled Overload
DustProductions.Core Namespace