Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AcceptsElement(GraphElement, ref string)

Whether an element can be added to this group.
Read time 1 minuteLast updated 12 days ago

Definition

AcceptsElement(GraphElement, string)

public override bool AcceptsElement(GraphElement element, ref string reasonWhyNotAccepted)

Parameters

The element to add.

reasonWhyNotAccepted

The reason that indicates why the element is not accepted.

Returns

Type

Description

boolReturns false if the specified element is a scope or group. Otherwise returns true.