Version: 2022.3
LanguageEnglish
  • C#

PropertyContainer.TryAccept

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool TryAccept(Unity.Properties.IPropertyBagVisitor visitor, ref TContainer container, Unity.Properties.VisitParameters parameters);

Parameters

visitor The visitor.
container The container to visit.
parameters The visit parameters to use.

Returns

bool <see langword="true" /> if the visitation succeeded; <see langword="false" /> otherwise.

Description

Tries to visit the specified <paramref name="container" /> by ref using the specified <paramref name="visitor" />.


Declaration

public static bool TryAccept(Unity.Properties.IPropertyBagVisitor visitor, ref TContainer container, out Unity.Properties.VisitReturnCode returnCode, Unity.Properties.VisitParameters parameters);

Parameters

visitor The visitor.
container The container to visit.
parameters The visit parameters to use.
returnCode When this method returns, contains the return code.

Returns

bool <see langword="true" /> if the visitation succeeded; <see langword="false" /> otherwise.

Description

Tries to visit the specified <paramref name="container" /> by ref using the specified <paramref name="visitor" />.


Declaration

public static bool TryAccept(Unity.Properties.IPropertyVisitor visitor, ref TContainer container, ref Unity.Properties.PropertyPath path, out Unity.Properties.VisitReturnCode returnCode, Unity.Properties.VisitParameters parameters);

Parameters

visitor The visitor.
container The container to visit.
path The property path to visit.
returnCode When this method returns, contains the return code.
parameters The visit parameters to use.

Description

Visit the specified <paramref name="container" /> using the specified <paramref name="visitor" /> at the given PropertyPath.