Class InvokeMember
Invokes a method or a constructor via reflection.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
public sealed class InvokeMember : MemberUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IIdentifiable, IAnalyticsIdentifiable, IAotStubbable
Constructors
InvokeMember()
Declaration
public InvokeMember()
InvokeMember(Member)
Declaration
public InvokeMember(Member member)
Parameters
Type | Name | Description |
---|---|---|
Member | member |
Properties
chainable
Whether the target should be output to allow for chaining.
Declaration
[Serialize]
[InspectableIf("supportsChaining")]
public bool chainable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
enter
Declaration
[DoNotSerialize]
public ControlInput enter { get; }
Property Value
Type | Description |
---|---|
ControlInput |
exit
Declaration
[DoNotSerialize]
public ControlOutput exit { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
inputParameters
Declaration
[DoNotSerialize]
public Dictionary<int, ValueInput> inputParameters { get; }
Property Value
Type | Description |
---|---|
Dictionary<Int32, ValueInput> |
invocation
Declaration
[DoNotSerialize]
[MemberFilter(Methods = true, Constructors = true)]
public Member invocation { get; set; }
Property Value
Type | Description |
---|---|
Member |
outputParameters
Declaration
[DoNotSerialize]
public Dictionary<int, ValueOutput> outputParameters { get; }
Property Value
Type | Description |
---|---|
Dictionary<Int32, ValueOutput> |
result
Declaration
[DoNotSerialize]
public ValueOutput result { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
supportsChaining
Declaration
[DoNotSerialize]
public bool supportsChaining { get; }
Property Value
Type | Description |
---|---|
Boolean |
targetOutput
The target object used when setting the value.
Declaration
[DoNotSerialize]
[PortLabel("Target")]
public ValueOutput targetOutput { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
GetAnalyticsIdentifier()
Declaration
public override AnalyticsIdentifier GetAnalyticsIdentifier()
Returns
Type | Description |
---|---|
AnalyticsIdentifier |
Overrides
IsMemberValid(Member)
Declaration
protected override bool IsMemberValid(Member member)
Parameters
Type | Name | Description |
---|---|---|
Member | member |
Returns
Type | Description |
---|---|
Boolean |