AssetInjectionAttribute.

TryInitialize(Type) Method

Summary

[Editor-Only] Attempts to initialize this attribute and returns true if successful.

Specifically, this method ensures that the Weaver.InjectionAttribute.MemberType inherits from UnityEngine.Object.
Assembly
Weaver.dll
Namespace
Weaver
Containing Type
AssetInjectionAttribute

Syntax

protected bool TryInitialize(Type assetType)

Parameters

Name Type Description
assetType Type

Return Value

Type Description
bool