Class SharedVariable
  Variable can be shared between behaviors in behavior tree
 
  
  
    Inheritance
    object
    SharedVariable
      
   
  
  
  Assembly: cs.temp.dll.dll
  Syntax
  
    public abstract class SharedVariable : ICloneable, IDisposable
   
  Properties
  
  IsExposed
  Whether variable is exposed to editor
 
  
  Declaration
  
    public bool IsExposed { get; set; }
   
  Property Value
  
  
  IsGlobal
  Whether variable is global
 
  
  Declaration
  
    public bool IsGlobal { get; set; }
   
  Property Value
  
  
  IsShared
  Whether variable is shared
 
  
  Declaration
  
    public bool IsShared { get; set; }
   
  Property Value
  
  
  Name
  
  
  Declaration
  
    public string Name { get; set; }
   
  Property Value
  
  Methods
  
  Bind(SharedVariable)
  Bind to other sharedVariable
 
  
  Declaration
  
    public abstract void Bind(SharedVariable other)
   
  Parameters
  
  
  Clone()
  Clone shared variable by deep copy, an option here is to override for preventing using reflection
 
  
  Declaration
  
    public virtual SharedVariable Clone()
   
  Returns
  
  
  Dispose()
  
  
  Declaration
  
    public abstract void Dispose()
   
  
  GetSerializedData()
  
  
  Declaration
  
    public virtual SharedVariableData GetSerializedData()
   
  Returns
  
  
  GetValue()
  
  
  Declaration
  
    public abstract object GetValue()
   
  Returns
  
  
  GetValueType()
  
  
  Declaration
  
    public virtual Type GetValueType()
   
  Returns
  
  
  Observe()
  Create a observe proxy variable
 
  
  Declaration
  
    public abstract ObserveProxyVariable Observe()
   
  Returns
  
  
  SetValue(object)
  
  
  Declaration
  
    public abstract void SetValue(object newValue)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | object | 
        newValue | 
         | 
      
    
  
  Implements
  
      IDisposable