Search Unity

Playable.GetPlayableType and IsPlayableOfType

Discussion in 'Animation' started by wang37921, Sep 10, 2019.

  1. wang37921

    wang37921

    Joined:
    Aug 1, 2014
    Posts:
    58
    Playable p = ScriptPlayable<CustomPlayableBehaviour> instance;
    var t = p.GetPlayableType();
    the t I got, is typeof(CustomPlayableBehaviour)

    I though it is confusion by its function name.
    p.IsPlayableOfType<ScriptPlayable<CustomPlayableBehaviour>>() return failed.

    Unity version: 2018.4.7f1