Here are the examples of the csharp api System.Predicate.Invoke(MonoBehaviorAssetData) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : SerializedAssets.cs
with MIT License
from trishume
with MIT License
from trishume
public replacedetObject GetreplacedetObjectFromScript<T>(Predicate<MonoBehaviorreplacedetData> mob, Predicate<T> cond) where T : BehaviorData
{
foreach(replacedetObject obj in objects) {
if(!(obj.data is MonoBehaviorreplacedetData)) continue;
MonoBehaviorreplacedetData monob = (MonoBehaviorreplacedetData)obj.data;
if(!(monob.data is T) || !mob(monob)) continue;
T behaviorData = (T)monob.data;
if(cond(behaviorData)) return obj;
}
return null;
}