LeapRecorder.Load C# (CSharp) Method

Load() public method

public Load ( TextAsset text_asset ) : void
text_asset UnityEngine.TextAsset
return void
  public void Load(TextAsset text_asset) {
    Load(text_asset.bytes);
  }

Same methods

LeapRecorder::Load ( byte data ) : void

Usage Example

    /** Initalizes the hand and tool lists and recording, if enabled.*/
    void Start()
    {
        // Initialize hand lookup tables.
        hand_graphics_ = new Dictionary <int, HandModel>();
        hand_physics_  = new Dictionary <int, HandModel>();

        tools_ = new Dictionary <int, ToolModel>();

        smoothedFixedUpdateOffset_.delay = FIXED_UPDATE_OFFSET_SMOOTHING_DELAY;

        if (leap_controller_ == null)
        {
            Debug.LogWarning(
                "Cannot connect to controller. Make sure you have Leap Motion v2.0+ installed");
        }

        if (enableRecordPlayback && recordingAsset != null)
        {
            recorder_.Load(recordingAsset);
        }

        LifecycleEventHandler handler = onStart;

        if (handler != null)
        {
            handler(this);
        }
    }
All Usage Examples Of LeapRecorder::Load