Class GridGraphRules
    Public
    
    Container for all rules in a grid graph.
// Get the first grid graph in the scene 
var gridGraph = AstarPath.active.data.gridGraph;
gridGraph.rules.rules.Add(new RuleAnglePenalty {
    penaltyScale = 10000,
    curve = AnimationCurve.Linear(0, 0, 90, 1),
});
Inner Types
Public Methods
        
                Add
        
                (rule, action)
    
                
                
                    Public
                
            
        
                DisposeUnmanagedData
        
                ()
    
                
                
                    Public
                
            
        
                ExecuteRule
        
                (rule, context)
    
                
                
                    Public
                
            
        
                Rebuild
        
                ()
    
                
                
                    Public
                
            
        
                RebuildIfNecessary
        
                ()
    
                
                
                    Public
                
            Public Variables
        
                rules
        
    
                
                List of all rules.
                    Public
                
            Private/Protected Members
        
                callbacks
        
    
                
                
                    Private
                
            
        
                Hash
        
                ()
    
                
                
                    Private
                
            
        
                lastHash
        
    
                
                
                    Private