示例#1
0
    Offset <Playable> MakePlayable(FlatBufferBuilder builder, PlayableData playable)
    {
        var displayName = builder.CreateString(playable.displayName ?? "Stage");

        Playable.StartPlayable(builder);
        Playable.AddExpandedInLayerList(builder, playable.expandedInLayerList);
        Playable.AddIndexInSymbol(builder, playable.IndexInSymbol);
        Playable.AddIsVisible(builder, playable.isVisible);
        Playable.AddOpacity(builder, playable.opacity);
        Playable.AddTrans(builder, MakeTransform(builder, playable.transform));
        Playable.AddDisplayName(builder, displayName);
        return(Playable.EndPlayable(builder));
    }