Skip to main content

Variables

                            
                              
                                class 
                                Variables
                              
                              

Constructors

constructor

                            
                              
                                public 
                                new
                                Variables
                                
                                  
                                    
                                      scene
                                      : 
                                      Scene
                                      
                                        
                                          
                                            unknown
                                          
                                        
                                      
                                    
                                  
                                
                                : 
                                Variables
                              
                              

Parameters

Methods

get

                            
                              
                                public 
                                get
                                
                                  
                                    
                                      T
                                    
                                  
                                
                                
                                  
                                    
                                      name
                                      : 
                                      string
                                    
                                    
                                      initial
                                      : 
                                      T
                                    
                                  
                                
                                : () => 
                                T
                              
                              

Get variable signal if exists or create signal if not

Type Parameters

Parameters

  • name : string

    The name of the variable.

  • initial : T

    The initial value of the variable. It will be used if thevariable was not configured from the outside.


handleReset

                            
                              
                                public 
                                handleReset
                                (): 
                                void
                              
                              

Reset all stored signals.


updateSignals

                            
                              
                                public 
                                updateSignals
                                
                                  
                                    
                                      variables
                                      : 
                                      Record
                                      
                                        
                                          
                                            string
                                          
                                          
                                            unknown
                                          
                                        
                                      
                                    
                                  
                                
                                : 
                                void
                              
                              

Update all signals with new project variable values.

Parameters