Tanoda
Leap.Unity.IValueProxy Interface Reference

A simple interface that allows an object to act as a 'proxy' interface to another object. The proxy can store a serialized representation of a value on another object. The value of the proxy can either be updated from the object (pull), or be pushed out to the object (push). More...

Inheritance diagram for Leap.Unity.IValueProxy:
Leap.Unity.AutoValueProxy

Public Member Functions

void OnPushValue ()
 Called when this proxy should push its serialized representation out to the target object. More...
 
void OnPullValue ()
 Called when this proxy should pull from the target object into its serialized representation. More...
 

Detailed Description

A simple interface that allows an object to act as a 'proxy' interface to another object. The proxy can store a serialized representation of a value on another object. The value of the proxy can either be updated from the object (pull), or be pushed out to the object (push).

This interface is normally used in animation systems where something that needs to be animated does not have an easily animatable representation. The proxy stands in as the animatable representation, while still allowing normal reads and writes.

Definition at line 25 of file IValueProxy.cs.

Member Function Documentation

◆ OnPullValue()

void Leap.Unity.IValueProxy.OnPullValue ( )

Called when this proxy should pull from the target object into its serialized representation.

Implemented in Leap.Unity.AutoValueProxy.

◆ OnPushValue()

void Leap.Unity.IValueProxy.OnPushValue ( )

Called when this proxy should push its serialized representation out to the target object.

Implemented in Leap.Unity.AutoValueProxy.


The documentation for this interface was generated from the following file: