Class SetMember
Sets the value of a field or property via reflection.
Inherited Members
Namespace: Unity.VisualScripting
Syntax
public sealed class SetMember : MemberUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IIdentifiable, IAnalyticsIdentifiable, IAotStubbable
Constructors
SetMember()
Declaration
public SetMember()
SetMember(Member)
Declaration
public SetMember(Member member)
Parameters
Type | Name | Description |
---|---|---|
Member | member |
Properties
assign
Declaration
[DoNotSerialize]
public ControlInput assign { get; }
Property Value
Type | Description |
---|---|
ControlInput |
assigned
Declaration
[DoNotSerialize]
public ControlOutput assigned { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
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 |
input
Declaration
[DoNotSerialize]
[PortLabel("Value")]
public ValueInput input { get; }
Property Value
Type | Description |
---|---|
ValueInput |
output
Declaration
[DoNotSerialize]
[PortLabel("Value")]
public ValueOutput output { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
setter
Declaration
[DoNotSerialize]
[MemberFilter(Fields = true, Properties = true, ReadOnly = false)]
public Member setter { get; set; }
Property Value
Type | Description |
---|---|
Member |
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 |