GetOutputChannel() публичный Метод

public GetOutputChannel ( uint channelId ) : StrumpyShaderEditor.OutputChannel
channelId uint
Результат StrumpyShaderEditor.OutputChannel
Пример #1
0
 public static Vector2 GetAbsoluteOutputChannelPosition( Node node, uint channelId )
 {
     var outputChannel = node.GetOutputChannel( channelId );
     var result = new Vector2( node.NodePositionInGraph.x, node.NodePositionInGraph.y);
     result += new Vector2( outputChannel.Position.x, outputChannel.Position.y );
     result += new Vector2( outputChannel.Position.width / 2, outputChannel.Position.height / 2 );
     return result;
 }
Пример #2
0
        public static Vector2 GetAbsoluteOutputChannelPosition(Node node, uint channelId)
        {
            var outputChannel = node.GetOutputChannel(channelId);
            var result        = new Vector2(node.NodePositionInGraph.x, node.NodePositionInGraph.y);

            result += new Vector2(outputChannel.Position.x, outputChannel.Position.y);
            result += new Vector2(outputChannel.Position.width / 2, outputChannel.Position.height / 2);
            return(result);
        }